Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown PDF EnhancedNew to Visual Studio Code? Get it now.
Markdown PDF Enhanced

Markdown PDF Enhanced

IRVece

|
109 installs
| (0) | Free
Convert Markdown to PDF with support for Mermaid, KaTeX, PlantUML, and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

markdown-pdf-enhanced README

The markdown-pdf-enhanced extension is designed to enhance the functionality of Markdown files in Visual Studio Code by providing additional features for exporting and formatting Markdown documents. This extension strives to offer a more updated, maintainable and customizable experience compared to the original markdown-pdf extension which hasn't been updated in years and I found convoluted.

Features

Command Palette

This extension provides the following functionality :

  • Export to PDF: Convert Markdown files to PDF format with a clean styling and customistation options.
  • Export to HTML: Convert Markdown files to HTML format with styling options.
  • Export to both PDF and HTML: Allows users to export their Markdown files to both formats simultaneously.

Suppoted Markdown Extended Features

Mermaid Diagrams

Support for Mermaid diagrams, allowing users to create flowcharts, sequence diagrams, and more directly within their Markdown files.

    ```mermaid
    flowchart LR
        Start --> Stop
    ```

PlantUML Diagrams

Support for PlantUML diagrams, enabling users to create UML diagrams, class diagrams, and other types of diagrams within their Markdown files.

@startuml

Class01 "1" *-- "many" Class02 : contains
Class03 o-- Class04 : aggregation
Class05 --> "1" Class06

@enduml

Container Blocks

Support for the following containers with special formatting:

  • Spoiler
  • Warning
  • Info
  • Tip
  • Danger Planned Feature
::: warning
*here be dragons*
:::

::: spoiler click me
*content*
:::

Katex Math

Support for katex style mathematical expressions and formulas.

$E = mc^2$

Emojis

Supports emojis.

:satellite:

Subscript

H~2~0

Superscript

29^th^

Footnotes Assessing for removal so please give feedback

Here is a footnote reference,[^1] and another.[^longnote]

[^1]: Here is the footnote.

[^longnote]: Here's one with multiple blocks.

    Subsequent paragraphs are indented to show that they
belong to the previous footnote.

Tasklists

- [ ] Item1
- [x] Item1
- [ ] Item1

Custom CSS stylesheets Planned Feature

The idea is to allow you to be able to tailor the look and feel of your PDF using a CSS stylesheet example.

Custom Headers and Footers

Would allow you to set anything you want in them. With some macros available for author, date, ...

Offline Usability Planned Feature

Would let you use the whole tool with no internet connection.

Requirements

At the moment, this extension does not have any specific requirements beyond Visual Studio Code and an internet connection for fetching external libraries. Planning support for local libraries and offline usage.

Extension Settings WIP, Planned Settings

Users can customize the behavior of the extension through the settings in Visual Studio Code. The following options are available:

markdownPdfEnhanced.externalModules

The section allows users to specify path to the external modules that will be used for the conversion process. This is useful for users who want to use offline versions of the libraries or have specific requirements for their Markdown processing.

  • markdownPdfEnhanced.externalModules.mermaidPath: Custom path to the Mermaid mermaid.esm.min.mjs file.
  • markdownPdfEnhanced.externalModules.plantUmlPath: Custom path to the PlantUML plantuml server or local jar file.
  • markdownPdfEnhanced.externalModules.plantUmlPathIsLocal: Boolean flag to indicate whether the provided plantUmlPath is a local jar file or a server URL. If set to true, the extension will treat the path as a local file; otherwise, it will treat it as a URL.

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Currently pre version 1, basic conversion works, no pretty styles or configuration yet.

0.5.0

Simplest working version of the extension, feel free to provide feedback if you use it. Not all settings work just yet.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft