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:
@@ -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' }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user