Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
https://markdown-it.github.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
376 B
17 lines
376 B
/*global describe, it*/
|
|
'use strict';
|
|
|
|
|
|
var assert = require('assert');
|
|
var Remarkable = require('../');
|
|
|
|
|
|
describe('Misc', function () {
|
|
|
|
it('Should correctly parse strings without tailing \\n', function () {
|
|
var md = new Remarkable();
|
|
|
|
assert.strictEqual(md.render('123'), '<p>123</p>\n');
|
|
assert.strictEqual(md.render('123\n'), '<p>123</p>\n');
|
|
});
|
|
});
|
|
|