Removed manually added instant previews in light of new extension

This commit is contained in:
squidfunk 2024-02-22 20:24:08 +07:00
parent 59f4147e60
commit 23f18866c3
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
14 changed files with 27 additions and 29 deletions

View File

@ -24,9 +24,9 @@ markdown_extensions:
See additional configuration options:
- [Admonition]{ data-preview="" }
- [Details]{ data-preview="" }
- [SuperFences]{ data-preview="" }
- [Admonition]
- [Details]
- [SuperFences]
[Admonition]: ../setup/extensions/python-markdown.md#admonition
[Details]: ../setup/extensions/python-markdown-extensions.md#details

View File

@ -23,9 +23,9 @@ markdown_extensions:
See additional configuration options:
- [Attribute Lists]{ data-preview="" }
- [Markdown in HTML]{ data-preview="" }
- [SuperFences]{ data-preview="" }
- [Attribute Lists]
- [Markdown in HTML]
- [SuperFences]
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html

View File

@ -21,7 +21,7 @@ markdown_extensions:
See additional configuration options:
- [Attribute Lists]{ data-preview="" }
- [Attribute Lists]
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists

View File

@ -34,10 +34,10 @@ JavaScript syntax highlighter.
See additional configuration options:
- [Highlight]{ data-preview="" }
- [InlineHilite]{ data-preview="" }
- [SuperFences]{ data-preview="" }
- [Snippets]{ data-preview="" }
- [Highlight]
- [InlineHilite]
- [SuperFences]
- [Snippets]
[Highlight]: ../setup/extensions/python-markdown-extensions.md#highlight
[InlineHilite]: ../setup/extensions/python-markdown-extensions.md#inlinehilite

View File

@ -24,8 +24,8 @@ markdown_extensions:
See additional configuration options:
- [SuperFences]{ data-preview="" }
- [Tabbed]{ data-preview="" }
- [SuperFences]
- [Tabbed]
[SuperFences]: ../setup/extensions/python-markdown-extensions.md#superfences
[Tabbed]: ../setup/extensions/python-markdown-extensions.md#tabbed

View File

@ -24,7 +24,7 @@ markdown_extensions:
See additional configuration options:
- [Tables]{ data-preview="" }
- [Tables]
[Tables]: ../setup/extensions/python-markdown.md#tables

View File

@ -22,7 +22,7 @@ markdown_extensions:
See additional configuration options:
- [Footnotes]{ data-preview="" }
- [Footnotes]
[Footnotes]: ../setup/extensions/python-markdown.md#footnotes

View File

@ -28,9 +28,9 @@ markdown_extensions:
See additional configuration options:
- [Critic]{ data-preview="" }
- [Caret, Mark & Tilde]{ data-preview="" }
- [Keys]{ data-preview="" }
- [Critic]
- [Caret, Mark & Tilde]
- [Keys]
[Critic]: ../setup/extensions/python-markdown-extensions.md#critic
[Caret, Mark & Tilde]: ../setup/extensions/python-markdown-extensions.md#caret-mark-tilde

View File

@ -26,8 +26,8 @@ markdown_extensions: # (1)!
See additional configuration options:
- [Attribute Lists]{ data-preview="" }
- [Markdown in HTML]{ data-preview="" }
- [Attribute Lists]
- [Markdown in HTML]
[icons and emojis]: icons-emojis.md
[configured separately]: icons-emojis.md#configuration

View File

@ -23,8 +23,8 @@ markdown_extensions:
See additional configuration options:
- [Attribute Lists]{ data-preview="" }
- [Markdown in HTML]{ data-preview="" }
- [Attribute Lists]
- [Markdown in HTML]
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html

View File

@ -24,8 +24,8 @@ markdown_extensions:
See additional configuration options:
- [Definition Lists]{ data-preview="" }
- [Tasklist]{ data-preview="" }
- [Definition Lists]
- [Tasklist]
[Definition Lists]: ../setup/extensions/python-markdown.md#definition-lists
[Tasklist]: ../setup/extensions/python-markdown-extensions.md#tasklist

View File

@ -24,9 +24,9 @@ markdown_extensions:
See additional configuration options:
- [Abbreviations]{ data-preview="" }
- [Attribute Lists]{ data-preview="" }
- [Snippets]{ data-preview="" }
- [Abbreviations]
- [Attribute Lists]
- [Snippets]
[Abbreviations]: ../setup/extensions/python-markdown.md#abbreviations
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists

View File

@ -113,7 +113,6 @@ def _resolve(file: File, page: Page):
# Create badge
def _badge(icon: str, text: str = "", type: str = ""):
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
text = f"{text}{{ data-preview='' }}" if text.endswith(")") else text
return "".join([
f"<span class=\"{classes}\">",
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),

View File

@ -113,7 +113,6 @@ def _resolve(file: File, page: Page):
# Create badge
def _badge(icon: str, text: str = "", type: str = ""):
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
text = f"{text}{{ data-preview='' }}" if text.endswith(")") else text
return "".join([
f"<span class=\"{classes}\">",
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),