Skip to content

Commit

Permalink
Use string replace to get HTML5
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Bruce committed Mar 28, 2018
1 parent 1694be9 commit f144566
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/integration/marked-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ var cmSpec = require('./commonmark.json');
describe('CommonMark 0.28', function() {
cmSpec.forEach(function(example) {
var consoleString = 'should pass example ' + example.example;
var expected = example.html.replace(' />', '>');
var result = example.markdown;

// sut.setOptions({xhtml:true});
it(consoleString, function() {
expect(
sut(example.markdown)
).toBe(example.html);
sut(result)
).toBe(expected);
});
});
});
Expand Down

0 comments on commit f144566

Please sign in to comment.