marked-cjk-breaks
Marked plugin to suppress linebreaks between east asian characters
Marked plugin to suppress linebreaks between east asian characters.
import {marked} from "marked";
import CjkBreaks from "marked-cjk-breaks";
marked.use(new CjkBreaks());
marked(`你好
谢谢
小笼包`);
// <p>你好谢谢小笼包</p>