jhuix / vscode-markdown-preview-showdown

A excellent markdown preview extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=jhuix.markdown-preview-showdown
Other
7 stars 1 forks source link
abc abcjs asciimath echarts export-pdf extension flowchart html katex markdown mermaid plantuml preview railroad showdown toc vega viz vscode wavedrom

MDPS: Markdown-Preview-Showdown

markdown-preview-showdown

A excellent markdown preview vscode extension with showdowns that converte markdown content to preview html.

If you think the vscode extension can help you or also hope to encourage the author, click on the top right corner to give me a Star⭐️.

Features

Markdown-Preview-Showdown(MDPS) is an vscode extension that preview markdown content as HTML and provides you with many useful functionalities such as plantuml, mermaid, LaTeX math and AsciiMath, TOC, export HTML, export PDF etc.

MDPS converte markdown content to html that using the @jhuix/showdowns npm package. See to Demo Features:

features-gif

@jhuix/showdowns is a lib that make markdown to html with some extensions of showdown.js. And showdown.js is a Javascript Markdown to HTML converter, based on the original works by John Gruber. For more information, refer to the following document:

Requirements

For local rendering plantuml

When local rendering plantuml requires Java support, so Java environment (JDK or JRE) needs to be installed and the Java executor directory needs to be set to the global path environment variable for the extension to work:

If you want to use PlantUML's functionality that requires GraphViz, you need to download and install it, and to set the GRAPHVIZ_DOT environment variable, as explained here:

After setting these environment variables you need to restart VSCode for the extension to work.

For export PDF or PNG or JPEG:

When markdown-preview-showdown.puppeteer.useCore setting is true, this extension require puppeteer-core package (It has been integrated into the MDPS extension) and google chrome browser or chrome-location package, and chrome.exe program path is set to markdown-preview-showdown.puppeteer.chromePath. The chrome-location globally installed by npm:

    npm install -g chrome-location

When markdown-preview-showdown.puppeteer.useCore setting is false, this extension require puppeteer package. The puppeteer globally installed by npm:

    npm install -g puppeteer

Install from VS Code (Recommended)

Open vscode editor, then search markdown-preview-showdown in extensions, then click Install button.

Extension Settings

This extension contributes the following settings:

Keybindings

OS Key Command
WINDOWS ctrl+shift+v ctrl+shift+v openPreview
MAC cmd+shift+v cmd+shift+v openPreview

Release Notes

Please see the release-notes page.

License

MIT License

Copyright (c) 2019-present, Jhuix (Hui Jin)