✨ NEW: Add `myst_fence_as_directive` config by chrisjsewell · Pull Request #742 · executablebooks/MyST-Parser
closes #366
Setting the following config, for example:
extensions = ["myst_parser", "sphinxcontrib.mermaid"] myst_fence_as_directive = ["mermaid"] # optional to use https://sphinxcontrib-mermaid-demo.readthedocs.io/en/latest/#directive-options myst_enable_extensions = ["attrs_block"]
allows for one to write
{caption="My caption"}
{alt="HTML alt" align=center}
```mermaid
graph LR
a --> b
```and have interoperable rendering with places like GitHub:
{caption="My caption"}
{alt="HTML alt" align=center}