Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zbinlin/markdown-it-perfect-newline-for-cjk

Remove line ending (LF) between CJK characters
https://github.com/zbinlin/markdown-it-perfect-newline-for-cjk

Last synced: 4 days ago
JSON representation

Remove line ending (LF) between CJK characters

Awesome Lists containing this project

README

        

# markdown-it-perfect-newline-for-cjk

[![Build Status](https://img.shields.io/travis/zbinlin/markdown-it-perfect-newline-for-cjk/master.svg?style=flat-square)](https://travis-ci.org/zbinlin/markdown-it-perfect-newline-for-cjk)
[![NPM version](https://img.shields.io/npm/v/markdown-it-perfect-newline-for-cjk.svg?style=flat-square)](https://www.npmjs.org/package/markdown-it-perfect-newline-for-cjk)
[![Coverage Status](https://img.shields.io/coveralls/zbinlin/markdown-it-perfect-newline-for-cjk/master.svg?style=flat-square)](https://coveralls.io/r/zbinlin/markdown-it-perfect-newline-for-cjk?branch=master)

> Remove line ending (LF) between CJK characters

## Install

node.js:

```bash
npm install markdown-it-perfect-newline-for-cjk --save
```

## Usage

```js
let md = require("markdown-it")();
md.use(require("markdown-it-perfect-newline-for-cjk"));
md.render(`这不是一个
换行!`); // => "

这不是一个换行!

"
```