@web-clipper/remark-pangu
v1.0.2
Published
Remark plugin to Automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols) by using pangu.js
Downloads
42
Maintainers
Readme
remark-pangu
给 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 中文