Skip to content
/ md2wx Public

Convert Markdown to WeChat compatible HTML, rendered in GitHub flavor

License

Notifications You must be signed in to change notification settings

eesast/md2wx

Repository files navigation

md2wx

Convert Markdown to WeChat compatible HTML, rendered in GitHub flavor

Features

  • Convert Markdown to GitHub flavored HTML
  • Code highlighting
  • Support LaTeX via KaTeX
  • Convert LaTeX SVG to WeChat compatible PNG (copy & paste enabled!)

Installation

npm install md2wx

# or
yarn add md2wx

Usage

import md2wx from "md2wx";

renderHtml

const text = "## h2";
const highlight = true;
const html = md2wx.renderHtml(text, highlight);

convertSvgToPng

await md2wx.convertSvgToPng();

About

Convert Markdown to WeChat compatible HTML, rendered in GitHub flavor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published