Skip to content

lwe8/pt-mark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ptmark

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.

Install

npm i pt-mark

Use

const ptmark = require("pt-mark"); // commonjs
import ptmark from "pt-mark"; // esm / typescript

API

  1. fromContent(markdown, [config]) : Markdown content to HTML string.
  2. fromFile(filePath, [config]) : Markdown file to HTML string.
  3. fromFileToFile(inputFilePath, outFilePath, [config]) : Markdown file to HTML file.

License

Apache-2.0 © Pho Thin Maung

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors