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 local mdn/content
and/or mdn/translated-content
copies. You will need the variables CONTENT_ROOT
and CONTENT_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