Refuse a fence info string that decodes to the reserved carry name
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-26 16:54:22 +02:00
parent cbacf5d598
commit 6f32c6fc61
4 changed files with 8 additions and 3 deletions
+1
View File
@@ -62,6 +62,7 @@ test('refuses the code block info strings the fence cannot hold', () => {
assert.equal(code(adfToMarkdown(document({ attrs: { language: '' }, type: 'codeBlock' }))), 'ambiguous-attribute-spelling')
assert.equal(code(adfToMarkdown(document({ attrs: { language: 'a`b' }, type: 'codeBlock' }))), 'unspellable-code-block-language')
assert.equal(code(adfToMarkdown(document({ attrs: { language: ' sql' }, type: 'codeBlock' }))), 'unspellable-code-block-language')
assert.equal(code(adfToMarkdown(document({ attrs: { language: 'adf' }, type: 'codeBlock' }))), 'unspellable-code-block-language')
})
test('refuses a link destination CommonMark cannot spell', () => {