We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beca777 commit 15ef279Copy full SHA for 15ef279
1 file changed
test/unit/server/utils/readme.spec.ts
@@ -375,7 +375,8 @@ describe('HTML output', () => {
375
const markdown = `# Title\n\nSome **bold** text and a [link](https://example.com).`
376
const result = await renderReadmeHtml(markdown, 'test-pkg')
377
378
- expect(result.html).toBe(`<h3 id="user-content-title" data-level="1">Title</h3>
+ expect(result.html)
379
+ .toBe(`<h3 id="user-content-title" data-level="1"><a href="#user-content-title">Title</a></h3>
380
<p>Some <strong>bold</strong> text and a <a href="https://example.com" rel="nofollow noreferrer noopener" target="_blank">link</a>.</p>
381
`)
382
})
0 commit comments