vscode-markdown icon indicating copy to clipboard operation
vscode-markdown copied to clipboard

Support theorem environment

Open dualer opened this issue 2 years ago • 1 comments

Proposal

Can you add some basic support for theorem environment? E.g.

::: {.theorem #label name="name"}
math: $\pi$

or

<div class="theorem" data-attribution="name">\label{label}
math: $\pi$
<\div>

Then, I can use pandoc to get the beautiful pdf document. More details see this.

References

dualer avatar Mar 16 '22 07:03 dualer

Well, this is too specialized a kind of syntax. Please see https://github.com/yzhang-gh/vscode-markdown#q-which-markdown-syntax-is-supported for more information about how we support additional Markdown syntaxes.

:::-like syntax is supported by markdown-it-container and a VS Code extension.

{.class}-like syntax is supported by markdown-it-attrs.

Apparently the "theorem" syntax is still out of the scope of the above two extensions. You need to find (or write) a markdown-it plugin to support it.

yzhang-gh avatar Mar 16 '22 14:03 yzhang-gh