Copied copy path!

MarkdownURL copied

dialect.py rewrites MkDocs syntax into Vyasa Markdown before Vyasa parses a page. The table of contents uses the same rewritten text. A construct is rewritten only when its extension is listed in markdown_extensions. html_post.py moves attribute-list attributes onto their elements after rendering and adds MkDocs slug anchors to headings. Abbreviations are written into the text as <abbr> elements, so every slide of a page keeps them.

Extension Syntax Vyasa output
admonition !!! note "Title" with an indented body Vyasa callout. The body is full Markdown and can nest.
pymdownx.details ??? tip, ???+ tip Collapsible Vyasa callout, closed or open.
pymdownx.tabbed === "Label" with an indented body Vyasa tab set. `=!` starts a new set and `=+` selects a tab.
pymdownx.blocks.* /// note | Title, /// details, /// tab, /// html, /// define, /// caption Callout, collapsible callout, tab set, HTML element, definition list, caption.
md_in_html <div markdown> The HTML element, with its content parsed as Markdown. Material grids (<div class="grid cards" markdown>) get grid CSS.
def_list Term then : Definition <dl> with Markdown in each definition.
attr_list { #id .class key=value } after a link, image, or icon, on a heading, or on the line after a paragraph The attributes on that element. .md-button and .md-button--primary get button CSS.
abbr *[HTML]: Hyper Text Markup Language <abbr title> on each matching word outside code.
toc [TOC] A list of the page's headings.
pymdownx.snippets --8<-- "file.md", line ranges, named sections, block form, auto_append The file content, read relative to base_path. With restrict_base_path (the default), files outside base_path are not read. URLs are not fetched.
pymdownx.superfences, pymdownx.highlight ```py title="a.py" hl_lines="2 3", ``` { .py } Vyasa code block with title= and hl=. Mermaid custom fences render as Vyasa Mermaid.
pymdownx.inlinehilite `#!python len(x)` Inline code without the language prefix.
pymdownx.emoji :smile:, :material-penguin:, :fontawesome-brands-github:, :octicons-heart-16:, :simple-python: Unicode emoji when pymdown-extensions is installed. Icons load as CSS masks from the npm packages that Material uses, through jsDelivr, so they take the text colour.
pymdownx.keys ++ctrl+alt+del++ <kbd> keys.
pymdownx.critic `{++ ++}, , , , ` Insert, delete, substitute, highlight, and comment marks in view mode.
pymdownx.caret, pymdownx.tilde, pymdownx.mark ^^ins^^, x^2^, H~2~O, ~~del~~, ==mark== <ins>, <sup>, <sub>, <del>, <mark>, including inside words.
pymdownx.progressbar [=65% "label"] Progress bar.
pymdownx.smartsymbols, smarty (c), -->, 1/2, 1st, --, ---, ... The typographic characters. smarty quotes are not converted.
pymdownx.magiclink A bare https:// URL A link. Repository shorthands such as @user and #123 are not converted.
pymdownx.arithmatex \(..\), \[..\], \begin{align} Vyasa math ($..$, $$..$$).
pymdownx.fancylists a), i., A. lists <ol type> lists.
nl2br A newline inside a paragraph A line break.
footnotes, tables, pymdownx.tasklist, wikilinks, pymdownx.quotes Their usual syntax Vyasa supports these natively.

Material image fragments #only-light and #only-dark hide an image in the other colour scheme. Headings keep Vyasa's anchor IDs. When the MkDocs slug of a heading is different, the heading also gets the MkDocs slug as an anchor, so existing page.md#slug links resolve. For example, ## A & B has the Vyasa ID a--b and the MkDocs anchor a-b.

Front matter title sets the page title. Front matter hide: [toc] hides the table of contents, and hide: [navigation, toc] hides both sidebars.