/* eslint-disable max-lines */
const Markdown = require('naturalcrit/markdown.js');
test('Escapes ';
const rendered = Markdown.render(source);
expect(rendered).toMatch('<script></script>');
});
test('Processes the markdown within an HTML block if its just a class wrapper', function() {
const source = '
*Bold text*
';
const rendered = Markdown.render(source);
expect(rendered).toBe('');
});
test('Check markdown is using the custom renderer; specifically that it adds target=_self attribute to internal links in HTML blocks', function() {
const source = '[Has _self Attribute?](#p1)
';
const rendered = Markdown.render(source);
expect(rendered).toBe('');
});