markdown
MDN Web Docs tool to covert HTML to Markdown and vice versa
Prerequisites
Setup
-
Install dependencies with
yarn
-
Write a
.env
file in the repository directory which indicates where are the files of your localmdn/content
and/ormdn/translated-content
copies. You will need the variablesCONTENT_ROOT
andCONTENT_TRANSLATED_ROOT
. As an example, the content of this file could look like:CONTENT_TRANSLATED_ROOT=../translated-content/files CONTENT_ROOT=../content/files
How to use
yarn md h2m web/http --locale en-us --mode dry
yarn md h2m web/http --locale en-us --mode replace