import Markdown from 'markdown.js'; 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('

Bold text

\n
'); }); 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('

Has _self Attribute?

\n
'); });