This package is the Visual Studio Code extension supporting Markdown. It saves Markdown as HTML and optionally provides extended Markdown syntax with the capabilities for additional user extensions.
The extension depends on the node.js Markdown parser “markdown-it” built in Visual Studio Code.
Since v. 2.0.0, the user can extend Markdown features by installing any “markdown-it” plug-ins abundantly available in the npm package registry. All the packages can be configured from a single source: “settings.json”, on the user or workspace level.
Extensible Markdown On Visual Studio Marketplace
Detailed Documentation
Original publication
- Conversion of an individual file or all Markdown files of the current Visual Studio Code workspace;
- A possibility of installation of “markdown-it“ plug-ins in an arbitrary directory, without the need to install “markdown-it” itself;
- Optional user-configurable auto-numbering with a rich set of options;
- User-configurable Markup syntax coloring for plug-ins;
- Optional embedding of CSS in HTML;
- Optional Detection of the document title based on user-configurable Regular Expression;
- Preview in Visual Studio Code, in a full-size window or side by side, with styles fully matching the generated HTML file;
- Configuration of all processing details of the extension, “markdown-it” and its plug-ins, from a single source.
Open a Markdown file (.md) in Visual Studio Code and activate the editor's context menu, use the command “Markdown: Convert to HTML”, to convert this file. All files found in a currently opened workspace can be converted at once with the command “Markdown: Convert to HTML all .md files in workspace”. This command appears in the context menu of any editor, and also in the Explorer context menu.
Alternatively, open the Command Palette (Ctrl+Shift+P
/Cmd+Shift+P or
F1`) and search for these commands.
The user can set up the extension of three levels: 1) general behavior of the commands, 2) detail of Markdown parsing and HTML production rules, and 3) plug-in options. The user can install additional plug-ins. If a plug-in has its own options, they are transparently passed from the user or workspace “settings.json” to the plug-in. See the documentation page for all the details.