UNPKG

remark-github-break

Version:

[![build status](https://img.shields.io/travis/imcuttle/remark-github-break/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/remark-github-break) [![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/remark-github-break.svg?style

21 lines (19 loc) 450 B
/** * @file index * @author Cuttle Cong * @date 2018/2/24 * @description */ const remark = require('remark') const html = require('remark-html') const breaks = require('../index') describe('index', function () { test('index case 1', () => { remark() .use(html) .use(breaks) .process('aaa\\\n*b*bb \nccc\nddd\\eee\n\\ \nfff', function (err, content) { expect(content.contents).toMatchSnapshot() }) }) })