Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ 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

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /