3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-13 04:08:29 +01:00

Answer prose round 1: 0 🔴, 4 🟡; cut the decisions entry to what was kept, split the changelog bullet, and drop the item 120 tagline's clause

This commit is contained in:
2026-10-18 11:34:42 +02:00
committed by Lillem4n
parent 0e1233b6d4
commit ee89efea88
5 changed files with 17 additions and 19 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import type { ClaimedPrefix } from './directive-syntax.ts'
import type { CodeSpanCloser } from './commonmark/backtick-runs.ts'
import type { Claims } from './portable/conventions.ts'
import type { CodeSpanCloser } from './commonmark/backtick-runs.ts'
import { backslashEscape, inlineHtmlConstruct, readBracketedAutolink, readEmailAutolink } from './commonmark/grammar.ts'
import { backtickCloser, backtickRun } from './commonmark/backtick-runs.ts'
import { claimDirectivePrefix } from './directive-syntax.ts'
+1 -1
View File
@@ -606,7 +606,7 @@ function sourceLine(markdown: string, line: number, start: number, end: number):
return { position: { line, offset: start }, text: replaceNullCharacters(markdown.slice(start, end)) }
}
// Counting stops at `upTo` columns, so a test against a width costs the width, not the line's whole indentation.
// `upTo` caps the cost: checking a line against an item's width reads at most that width.
function leadingColumns(line: Line, upTo = Infinity): number {
let columns = 0
for (const character of line.text) {