cjk()
面向 CJK 的文本处理,移除 CJK 字符之间多余的换行符。
import { cjk } from "@unifast/node";签名
function cjk(): UnifastPlugin参数
无。
用法
import { compile, cjk } from "@unifast/node";
const md = `
今日は天気が
とても良いです。
`;
const result = compile(md, { plugins: [cjk()] });
console.log(result.output);
// <p>今日は天気がとても良いです。</p>