remarked
Version:
Markdown parser and lexer. A fork of marked.js maintained for Assemble.
32 lines (26 loc) • 814 B
JavaScript
/**
* remarked <https://github.com/jonschlinkert/remarked>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT license.
*/
;
var expect = require('chai').expect;
var remarked = require('../');
var helper = require('./helpers/utils');
var normalize = helper.stripSpaces;
/**
* emphasis
*/
describe('em and strong', function () {
describe('strong_and_em_together', function () {
it('should convert strong_and_em_together', function () {
var testfile = 'strong_and_em_together';
var fixture = helper.readFile(testfile + '.md');
var actual = remarked(fixture);
helper.writeActual(testfile, actual);
var expected = helper.readFile(testfile + '.html');
expect(normalize(actual)).to.equal(normalize(expected));
});
});
});