cjk()

CJK-friendly text processing that removes unwanted newlines between CJK characters.

import { cjk } from "@unifast/node";

Signature

function cjk(): UnifastPlugin

Parameters

None.

Usage

import { compile, cjk } from "@unifast/node";

const md = `
今日は天気が
とても良いです。
`;

const result = compile(md, { plugins: [cjk()] });
console.log(result.output);
// <p>今日は天気がとても良いです。</p>

Examples

CJK newline removal