marked-cjk-breaks

Marked plugin to suppress linebreaks between east asian characters

marked-cjk-breaks

NPM version

Marked plugin to suppress linebreaks between east asian characters.

Usage

import {marked} from "marked";
import CjkBreaks from "marked-cjk-breaks";

marked.use(new CjkBreaks());

marked(`你好
谢谢
小笼包`);
// <p>你好谢谢小笼包</p>

Reference

marked

markdown-it-cjk-breaks

Requirements for Chinese Text Layout

License

Boost Software License 1.0