diff --git a/tests/markdown/basic.test.js b/tests/markdown/basic.test.js index 174e43d7e..459bb22c4 100644 --- a/tests/markdown/basic.test.js +++ b/tests/markdown/basic.test.js @@ -13,3 +13,9 @@ test('Processes the markdown within an HTML block if its just a class wrapper', 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
'); +});