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>

示例

CJK 换行符移除