Convert Markdown to HTML with Node.js

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • markdown-it

    Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

  • markdown-it

  • Highlight.js

    JavaScript syntax highlighter with language auto-detection and zero dependencies.

  • highlight.js

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • For this example these packages are also installed, mostly to support using TypeScript and ES modules in Node.js, which is optional.

  • devextent

    javascript and web development articles

  • http-server

    a simple zero-configuration command-line http server

  • You can validate the generated HTML code with the W3C Markup Validation Service, and you can also use the http-server npm package to create a local web server on your computer to view the "index.html" file in a browser.

  • babel-sublime

    Syntax definitions for ES6 JavaScript with React JSX extensions.

  • The remainder of these steps will include setting up the TypeScript and Babel compilers to use ES Modules in Node.js for the CLI script that will convert Markdown into HTML, and write the HTML string to a file.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts