A simple Markdown-to-HTML parser implemented as a native Node.js C++ addon, based on Maddy, a header-only C++ Markdown-to-HTML parser library.
npm i pt-markconst ptmark = require("pt-mark"); // commonjs
import ptmark from "pt-mark"; // esm / typescriptfromContent(markdown, [config]): Markdown content to HTML string.fromFile(filePath, [config]): Markdown file to HTML string.fromFileToFile(inputFilePath, outFilePath, [config]): Markdown file to HTML file.
Most parts of the Markdown-to-HTML parser in ptmark are derived from Maddy, which is licensed under the MIT License (see license). This project adds new features and modifications to several of the original parsers.