Visual Studio Code extension: Markdown CalculatorPut the keyword (by default, "run") on the same line as the opening fence indicator. It will force the fenced code block to execute instead of rendering it:
The execution results will be rendered instead of the source code: 2 3 5 6 Likewise, for an inline code fragment, the result of a calculation will be rendered, if it starts with the keyword "return". For example, The This extension can be combined with other markdown-it extensions. In particular, the rendered HTML can be saved using Extensible Markdown. Original publication: https://www.codeproject.com/Articles/5297157/Markdown-Calculator |