mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 06:06:33 +01:00
2025.12.25 16:22:14 (cachyos.cmoser.eu)
This commit is contained in:
@@ -64,7 +64,7 @@ FORMATTERS=[
|
||||
(('image', render_image), {'same_tag_closes': True}),
|
||||
(('img', render_image), {'same_tag_closes': True}),
|
||||
(('wiki-image', render_wiki_image), {'standalone': True}),
|
||||
(('wimg', render_wiki_image),{'standalone': True}),
|
||||
(('wimg', render_wiki_image), {'standalone': True}),
|
||||
(('table', render_table), {}),
|
||||
(('table-row', render_table_row), {}),
|
||||
(('tr', render_table_row), {}),
|
||||
|
||||
@@ -477,6 +477,6 @@ def render_youtube_video(tag_name: str, value, options, parent, context):
|
||||
if settings.USE_BOOTSTRAP:
|
||||
return f"""<div class=""{' '.join(div_classes)}" {div_style}>
|
||||
<iframe class="{' '.join(classes)}" src="https://www.youtube.com/embgit ed/{options[tag_name]}?rel=0" allowfullscreen></iframe>
|
||||
</div>"""
|
||||
</div>""" # noqa: E501
|
||||
else:
|
||||
return f'<div {div_style}><iframe src="https://www.youtube.com/embed/{options[tag_name]}?rel=0" allowfullscreen></iframe></div>'
|
||||
return f'<div {div_style}><iframe src="https://www.youtube.com/embed/{options[tag_name]}?rel=0" allowfullscreen></iframe></div>' # noqa: E501
|
||||
|
||||
Reference in New Issue
Block a user