mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 14:16:32 +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}),
|
(('image', render_image), {'same_tag_closes': True}),
|
||||||
(('img', render_image), {'same_tag_closes': True}),
|
(('img', render_image), {'same_tag_closes': True}),
|
||||||
(('wiki-image', render_wiki_image), {'standalone': True}),
|
(('wiki-image', render_wiki_image), {'standalone': True}),
|
||||||
(('wimg', render_wiki_image),{'standalone': True}),
|
(('wimg', render_wiki_image), {'standalone': True}),
|
||||||
(('table', render_table), {}),
|
(('table', render_table), {}),
|
||||||
(('table-row', render_table_row), {}),
|
(('table-row', render_table_row), {}),
|
||||||
(('tr', 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:
|
if settings.USE_BOOTSTRAP:
|
||||||
return f"""<div class=""{' '.join(div_classes)}" {div_style}>
|
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>
|
<iframe class="{' '.join(classes)}" src="https://www.youtube.com/embgit ed/{options[tag_name]}?rel=0" allowfullscreen></iframe>
|
||||||
</div>"""
|
</div>""" # noqa: E501
|
||||||
else:
|
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
|
||||||
|
|||||||
0
tinywiki/parser/markdown/__init__.py
Normal file
0
tinywiki/parser/markdown/__init__.py
Normal file
Reference in New Issue
Block a user