mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed manually added instant previews in light of new extension
This commit is contained in:
parent
59f4147e60
commit
23f18866c3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -24,7 +24,7 @@ markdown_extensions:
|
||||
|
||||
See additional configuration options:
|
||||
|
||||
- [Tables]{ data-preview="" }
|
||||
- [Tables]
|
||||
|
||||
[Tables]: ../setup/extensions/python-markdown.md#tables
|
||||
|
||||
|
@ -22,7 +22,7 @@ markdown_extensions:
|
||||
|
||||
See additional configuration options:
|
||||
|
||||
- [Footnotes]{ data-preview="" }
|
||||
- [Footnotes]
|
||||
|
||||
[Footnotes]: ../setup/extensions/python-markdown.md#footnotes
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 []),
|
||||
|
@ -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 []),
|
||||
|
Loading…
Reference in New Issue
Block a user