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>