/doc-to-md-macros

Macros for Microsoft Word which converts content of the document to markdown(.md) syntax.

Primary LanguageVisual Basic .NET

doc-to-md-macros

Microsoft Word macros which converts content of the document to markdown(.md) syntax.

How to use?

Do these steps only the first time

  1. Open your word document and then hit Alt+F11. You should see Microsoft Visual Basic for Applications window
  2. Right click on Normal project. Insert -> Module
    • In this case the macros will be available for any document on your machine
    add-module
  3. Select the code of the module from this page
  4. Close the Visial Basic for Applications window.

Do these steps each time you want to convert a document

  • Open the word document you want to convert
  • Hit Alt + F8 (or choose View->Macros)
  • Run the macros DocToMarkdown
  • The result of conversion you should see right inside the word document
  • Copy-Paste the content of the file to .md document

Supported elements (will be converted to markdown)

  • Heading Styles from 1 to 5
  • Text formatting
    • Italic
    • Bold
    • Underline
    • Combination fo styles above
  • Links
  • First-level lists
    • Numbered
    • Bulleted
  • Tables

What to do if something is not working correctly or you have an enhancement idea?

  • Add the issue with bug or enhancements label to the Issues section.
  • Create pull request with the fix or enhancement. Thanks!