-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow auto rendering code snippets (#418)
This adds a new `auto_render_languages` [option](https://mfontanini.github.io/presenterm/guides/configuration.html#options) (meaning it can be configured in the config file or in the presentation itself) that specifies a list of languages for which the `+render` attribute is implied and are therefore automatically rendered. This means for example this presentation would have its mermaid diagram automatically rendered as an image: ~~~markdown --- options: auto_render_languages: - mermaid --- ```mermaid sequenceDiagram bob ->> mike: oh hi ``` ~~~ Fixes #416
- Loading branch information
Showing
5 changed files
with
115 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters