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