Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eesast/md2wx
Convert Markdown to WeChat compatible HTML, rendered in GitHub flavor
https://github.com/eesast/md2wx
github katex latex markdown wechat
Last synced: 21 days ago
JSON representation
Convert Markdown to WeChat compatible HTML, rendered in GitHub flavor
- Host: GitHub
- URL: https://github.com/eesast/md2wx
- Owner: eesast
- License: mit
- Created: 2019-09-26T16:41:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T22:44:23.000Z (5 months ago)
- Last Synced: 2024-09-29T18:17:24.988Z (4 months ago)
- Topics: github, katex, latex, markdown, wechat
- Language: TypeScript
- Size: 186 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
npm install md2wx# or
yarn add md2wx
```## Usage
```js
import md2wx from "md2wx";
```### `renderHtml`
```js
const text = "## h2";
const highlight = true;
const html = md2wx.renderHtml(text, highlight);
```### `convertSvgToPng`
```js
await md2wx.convertSvgToPng();
```