From 6c13fcfeb1753b47a535e87bd10e76ba91684eb2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 24 Oct 2026 01:47:44 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=203:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20a=20block?= =?UTF-8?q?=20inside=20an=20inline=20node=20inside=20a=20carried=20code=20?= =?UTF-8?q?block=20pinned?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/html/emit/adf-to-html.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/html/emit/adf-to-html.test.ts b/src/html/emit/adf-to-html.test.ts index 296a5ab..978cdda 100644 --- a/src/html/emit/adf-to-html.test.ts +++ b/src/html/emit/adf-to-html.test.ts @@ -182,6 +182,7 @@ test('shows a code block in a div carry as pre and code, keeping its line feeds test('shows a block inside a code block in a div carry as a paragraph, and the text after it as code', () => { assert.equal(shown(html(adfToHtml(document({ content: [text('x'), paragraph(text('a\nb')), text('z')], type: 'codeBlock' })))), '
x

a
b

z
') + assert.equal(shown(html(adfToHtml(document({ content: [text('x'), { attrs: { id: 'u' }, content: [paragraph(text('a'))], type: 'mention' }, text('z')], type: 'codeBlock' })))), '
x@u

a

z
') }) test('gives a code block in a div carry the class its element takes, and none where its language is no class token', () => {