Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zbinlin/markdown-it-perfect-newline-for-cjk
- Owner: zbinlin
- Created: 2016-01-06T08:29:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-06T08:48:50.000Z (almost 9 years ago)
- Last Synced: 2024-09-19T15:37:44.287Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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(`这不是一个
换行!`); // => "这不是一个换行!
"
```