mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01: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:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Admonition]{ data-preview="" }
|
- [Admonition]
|
||||||
- [Details]{ data-preview="" }
|
- [Details]
|
||||||
- [SuperFences]{ data-preview="" }
|
- [SuperFences]
|
||||||
|
|
||||||
[Admonition]: ../setup/extensions/python-markdown.md#admonition
|
[Admonition]: ../setup/extensions/python-markdown.md#admonition
|
||||||
[Details]: ../setup/extensions/python-markdown-extensions.md#details
|
[Details]: ../setup/extensions/python-markdown-extensions.md#details
|
||||||
|
@ -23,9 +23,9 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Attribute Lists]{ data-preview="" }
|
- [Attribute Lists]
|
||||||
- [Markdown in HTML]{ data-preview="" }
|
- [Markdown in HTML]
|
||||||
- [SuperFences]{ data-preview="" }
|
- [SuperFences]
|
||||||
|
|
||||||
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
||||||
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html
|
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html
|
||||||
|
@ -21,7 +21,7 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Attribute Lists]{ data-preview="" }
|
- [Attribute Lists]
|
||||||
|
|
||||||
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
||||||
|
|
||||||
|
@ -34,10 +34,10 @@ JavaScript syntax highlighter.
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Highlight]{ data-preview="" }
|
- [Highlight]
|
||||||
- [InlineHilite]{ data-preview="" }
|
- [InlineHilite]
|
||||||
- [SuperFences]{ data-preview="" }
|
- [SuperFences]
|
||||||
- [Snippets]{ data-preview="" }
|
- [Snippets]
|
||||||
|
|
||||||
[Highlight]: ../setup/extensions/python-markdown-extensions.md#highlight
|
[Highlight]: ../setup/extensions/python-markdown-extensions.md#highlight
|
||||||
[InlineHilite]: ../setup/extensions/python-markdown-extensions.md#inlinehilite
|
[InlineHilite]: ../setup/extensions/python-markdown-extensions.md#inlinehilite
|
||||||
|
@ -24,8 +24,8 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [SuperFences]{ data-preview="" }
|
- [SuperFences]
|
||||||
- [Tabbed]{ data-preview="" }
|
- [Tabbed]
|
||||||
|
|
||||||
[SuperFences]: ../setup/extensions/python-markdown-extensions.md#superfences
|
[SuperFences]: ../setup/extensions/python-markdown-extensions.md#superfences
|
||||||
[Tabbed]: ../setup/extensions/python-markdown-extensions.md#tabbed
|
[Tabbed]: ../setup/extensions/python-markdown-extensions.md#tabbed
|
||||||
|
@ -24,7 +24,7 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Tables]{ data-preview="" }
|
- [Tables]
|
||||||
|
|
||||||
[Tables]: ../setup/extensions/python-markdown.md#tables
|
[Tables]: ../setup/extensions/python-markdown.md#tables
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Footnotes]{ data-preview="" }
|
- [Footnotes]
|
||||||
|
|
||||||
[Footnotes]: ../setup/extensions/python-markdown.md#footnotes
|
[Footnotes]: ../setup/extensions/python-markdown.md#footnotes
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Critic]{ data-preview="" }
|
- [Critic]
|
||||||
- [Caret, Mark & Tilde]{ data-preview="" }
|
- [Caret, Mark & Tilde]
|
||||||
- [Keys]{ data-preview="" }
|
- [Keys]
|
||||||
|
|
||||||
[Critic]: ../setup/extensions/python-markdown-extensions.md#critic
|
[Critic]: ../setup/extensions/python-markdown-extensions.md#critic
|
||||||
[Caret, Mark & Tilde]: ../setup/extensions/python-markdown-extensions.md#caret-mark-tilde
|
[Caret, Mark & Tilde]: ../setup/extensions/python-markdown-extensions.md#caret-mark-tilde
|
||||||
|
@ -26,8 +26,8 @@ markdown_extensions: # (1)!
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Attribute Lists]{ data-preview="" }
|
- [Attribute Lists]
|
||||||
- [Markdown in HTML]{ data-preview="" }
|
- [Markdown in HTML]
|
||||||
|
|
||||||
[icons and emojis]: icons-emojis.md
|
[icons and emojis]: icons-emojis.md
|
||||||
[configured separately]: icons-emojis.md#configuration
|
[configured separately]: icons-emojis.md#configuration
|
||||||
|
@ -23,8 +23,8 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Attribute Lists]{ data-preview="" }
|
- [Attribute Lists]
|
||||||
- [Markdown in HTML]{ data-preview="" }
|
- [Markdown in HTML]
|
||||||
|
|
||||||
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
||||||
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html
|
[Markdown in HTML]: ../setup/extensions/python-markdown.md#markdown-in-html
|
||||||
|
@ -24,8 +24,8 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Definition Lists]{ data-preview="" }
|
- [Definition Lists]
|
||||||
- [Tasklist]{ data-preview="" }
|
- [Tasklist]
|
||||||
|
|
||||||
[Definition Lists]: ../setup/extensions/python-markdown.md#definition-lists
|
[Definition Lists]: ../setup/extensions/python-markdown.md#definition-lists
|
||||||
[Tasklist]: ../setup/extensions/python-markdown-extensions.md#tasklist
|
[Tasklist]: ../setup/extensions/python-markdown-extensions.md#tasklist
|
||||||
|
@ -24,9 +24,9 @@ markdown_extensions:
|
|||||||
|
|
||||||
See additional configuration options:
|
See additional configuration options:
|
||||||
|
|
||||||
- [Abbreviations]{ data-preview="" }
|
- [Abbreviations]
|
||||||
- [Attribute Lists]{ data-preview="" }
|
- [Attribute Lists]
|
||||||
- [Snippets]{ data-preview="" }
|
- [Snippets]
|
||||||
|
|
||||||
[Abbreviations]: ../setup/extensions/python-markdown.md#abbreviations
|
[Abbreviations]: ../setup/extensions/python-markdown.md#abbreviations
|
||||||
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
[Attribute Lists]: ../setup/extensions/python-markdown.md#attribute-lists
|
||||||
|
@ -113,7 +113,6 @@ def _resolve(file: File, page: Page):
|
|||||||
# Create badge
|
# Create badge
|
||||||
def _badge(icon: str, text: str = "", type: str = ""):
|
def _badge(icon: str, text: str = "", type: str = ""):
|
||||||
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
|
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
|
||||||
text = f"{text}{{ data-preview='' }}" if text.endswith(")") else text
|
|
||||||
return "".join([
|
return "".join([
|
||||||
f"<span class=\"{classes}\">",
|
f"<span class=\"{classes}\">",
|
||||||
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),
|
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),
|
||||||
|
@ -113,7 +113,6 @@ def _resolve(file: File, page: Page):
|
|||||||
# Create badge
|
# Create badge
|
||||||
def _badge(icon: str, text: str = "", type: str = ""):
|
def _badge(icon: str, text: str = "", type: str = ""):
|
||||||
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
|
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
|
||||||
text = f"{text}{{ data-preview='' }}" if text.endswith(")") else text
|
|
||||||
return "".join([
|
return "".join([
|
||||||
f"<span class=\"{classes}\">",
|
f"<span class=\"{classes}\">",
|
||||||
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),
|
*([f"<span class=\"mdx-badge__icon\">{icon}</span>"] if icon else []),
|
||||||
|
Loading…
Reference in New Issue
Block a user