0.0.1 • Published 2 years ago

@mdn/markdown-converter v0.0.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 years ago

markdown

MDN Web Docs tool to covert HTML to Markdown and vice versa

Prerequisites

Setup

  1. Install dependencies with

    yarn
  2. 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