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 換行