UNPKG

remarked

Version:

Markdown parser and lexer. A fork of marked.js maintained for Assemble.

44 lines (36 loc) 1.2 kB
/** * remarked <https://github.com/jonschlinkert/remarked> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; var expect = require('chai').expect; var remarked = require('../'); var helper = require('./helpers/utils'); var normalize = helper.stripSpaces; /** * horizontal rules */ describe('hr', function () { describe('horizontal_rules', function () { it('should convert horizontal_rules', function () { var testfile = 'horizontal_rules'; 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)); }); }); describe('hr_list_break', function () { it('should convert hr_list_break', function () { var testfile = 'hr_list_break'; 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)); }); }); });