3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Refuse a fence info string that decodes to the reserved carry name

This commit is contained in:
2026-08-26 16:54:22 +02:00
parent 5da0a3afdd
commit 8ebf841b12
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', () => {