Skip to content

Markdown syntax extended with Pandoc features (citations, fenced divs/spans, etc)

License

Notifications You must be signed in to change notification settings

garlicbreadcleric/vscode-pandoc-markdown

Repository files navigation

Pandoc Markdown Syntax

VSCode Marketplace | Open VSX | GitHub

Standard VSCode Markdown syntax with some modifications to support Pandoc Markdown extensions:

  • Citations: @citationKey, @{citationKey}, [see @citationKey1 p. 42; citationKey2 p. 24]

  • Fenced divs:

    ::: {.float-right}
    ![figure 1](./figure1.png)
    :::
  • Bracketed spans: [foo]{.mark}

Caveats

  • Instead of injecting into the builtin Markdown grammar, this extension overrides it completely (even though the grammar is still mostly the same as the one built into VSCode, with a few tweaks). The reason for this is that I also use these grammar definitions for parsing Markdown in Markane language server via vscode-textmate library, and vscode-textmate doesn't support language injections.

See also

About

Markdown syntax extended with Pandoc features (citations, fenced divs/spans, etc)

Topics

Resources

License

Stars

Watchers

Forks