1
0
mirror of synced 2026-01-10 00:03:04 -05:00

Upgrade all rehype and remark (#43021)

This commit is contained in:
Peter Bengtsson
2023-09-22 07:58:32 -04:00
committed by GitHub
parent fb3cdbea98
commit 384c12e8d7
5 changed files with 1199 additions and 1992 deletions

View File

@@ -149,7 +149,7 @@ describe('renderContent', () => {
const html = await renderContent(template)
const $ = cheerio.load(html, { xmlMode: true })
expect($('ol').length).toBe(1)
expect($.html().includes('<span class="hljs-meta"># </span')).toBeTruthy()
expect($.html().includes('<span class="hljs-meta prompt_"># </span')).toBeTruthy()
expect($.html().includes('some comment here')).toBeTruthy()
expect($.html().includes('<h1 id="some-comment-here">')).toBeFalsy()
expect($.html().includes('<a href="#some-comment-here">')).toBeFalsy()