Skip to content
给 Markdown 中英文自动插入空格的 remark 插件
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests-config
tests feat(lib): initial commit Sep 8, 2017
.editorconfig
.gitignore feat(lib): initial commit Sep 8, 2017
.travis.yml ci(travis): use latest yarn version Sep 8, 2017
LICENSE feat(lib): initial commit Sep 8, 2017
README.md
index-compiler.js
index.js
package.json
yarn.lock chore(deps): bump fstream from 1.0.11 to 1.0.12 (#10) Dec 29, 2019

README.md

remark-pangu

travis build version MIT License semantic-release

给 Markdown 中英文自动插入空格的 remark 插件(使用 pangu.js)。

Install

npm install remark-pangu

Usage

remark().use(pangu)
const remark = require('remark')
const pangu = require('remark-pangu')

const doc = '中文abc中文';
remark().use(pangu).process(doc, (err, file) => {
  console.log(String(file));
});
// => 中文 abc 中文

LICENSE

MIT

You can’t perform that action at this time.