Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown DocxNew to Visual Studio Code? Get it now.
Markdown Docx

Markdown Docx

toramameseven

|
19,398 installs
| (0) | Free
Markdown docx converter
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Docx README

This is the README Markdown Docx. This extension converts a markdown file to a Docx or a Pptx (experimental). This uses next two excellent modules.

  • DOCX
  • PptxGenJS

The document is here

Requirements

  • Windows 10

Features

  • Markdown Docx is a markdown converter to docx.
  • Markdown Docx works for common mark md(s).
  • Click Convert Docx at the context menu on the explore or the editor.
  • In the editor, you can convert only the selection in the text.
  • In the output tab, markdown-docx, the progress and the warns are displayed.

Features(Experimental)

  • Convert a markdown to pptx

markdown vscode settings

like below

  "[markdown]": {
    "editor.wordWrap": "off",
    "editor.quickSuggestions": {
      "other": true,
      "comments": false,
      "strings": false
    },
    "editor.snippetSuggestions": "top"
  },

word template

It is better, set your language font.

template files

You can see the some template in the markdown-docx site templates folder.

  • _with_cover.docx
  • _no_cover.docx (default template)

In these template, you see the placeholder described at next section.

place holder

DOCX type place folder is used.

Next place holders are used in the sample template.

  • main content

    • `{{paragraphReplace}}
    • do not set this other information.

  • for cover

    • {{title}}
    • {{subTitle}}
    • {{author}}
    • {{division}}
    • {{date}}
    • {{docNumber}}

markdown

<!-- word placeholder title "sample document" -->

docx template

{{title}}

{{title}} is replaced to "sample document".

Known Issues

  • Inline math does not work.
  • HTML does not work.
  • Block quote does no work.
  • The indent of table of contents is not good.

How to package

  1. npm install -g vsce
  2. vsce package --target win32-x64
  3. vsce publish

Acknowledgments

We thank for the wonderful npm packages.

Packages

some feature are not active now.

And we use some useful articles below.

  • markdown-to-txt tells us how to use Marked.
  • marked-extended-tables is for merged table.
  • To Slugify, we use Mr. Sato 's code (https://qiita.com/satokaz/items/64582da4640898c4bf42)
  • node-html-markdown's code is used, for converting html to markdown.

Release Notes

  • 0.0.4

    • experimental feature creating pptx.
  • 0.0.3

    • add check box.
  • 0.0.2

    • use DOCX for creating word files.
    • we do not support the vbs rendering on version 0.0.2.
  • 0.0.1

    • first Release.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft