New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-cjk-breaks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-cjk-breaks

Suppress linebreaks between CJK characters

1.0.0
Source
npm
Version published
Weekly downloads
1.4K
26.96%
Maintainers
1
Weekly downloads
 
Created
Source

markdown-it-cjk-breaks

Build Status NPM version Coverage Status

Plugin for markdown-it that suppresses linebreaks between asian characters.

Normally newlines in a markdown text get rendered as newlines in output html text. Then browser will render those newlines as whitespace as per html spec. This plugin finds and removes newlines occuring between two east asian characters to prevent undesirable whitespace.

Install

yarn add markdown-it-cjk-breaks

Usage

var md = require('markdown-it')();
var cjk_breaks = require('markdown-it-cjk-breaks');

md.use(cjk_breaks);

md.render(`
あおえ
うい
aoe
ui
`);

// returns:
//
//<p>あおえうい
//aoe
//ui</p>

License

MIT

Keywords

markdown-it-plugin

FAQs

Package last updated on 24 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts