3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 07:32:58 +01:00

Answer prose round 1: 0 🔴, 7 🟡 (0 misread); the bound test's block count is 53, comments name their referents

This commit is contained in:
2026-10-29 16:19:12 +01:00
committed by Lillem4n
parent bbd2ad9c74
commit ee95b3035f
8 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ test('refuses a quote whose prefixed lines would pass V8\'s longest string', ()
assert.equal(pastTheBound(adfToLosslessMarkdown(document({ content: [code, code], type: 'blockquote' }))), true)
})
// A code block spelled in 55 characters around its text; the blocks between them take a blank line, and the markdown a closing line break.
// A code block written as its text plus 53 characters; a blank line parts two blocks, and the markdown ends with a line break.
function codeBlockOf(textLength: number): AdfNode {
return { attrs: {}, content: [{ text: `${'a'.repeat(textLength - 1)}\n`, type: 'text' }], type: 'codeBlock' }
}