test: add command arg parsing coverage (#936) (thanks @thewilloftheshadow)

This commit is contained in:
Peter Steinberger
2026-01-15 09:38:21 +00:00
parent 6ccb19e274
commit 6ff3c39989
2 changed files with 98 additions and 4 deletions

View File

@@ -19,10 +19,7 @@ export type CodeSpanIndex = {
isInside: (index: number) => boolean;
};
export function buildCodeSpanIndex(
text: string,
inlineState?: InlineCodeState,
): CodeSpanIndex {
export function buildCodeSpanIndex(text: string, inlineState?: InlineCodeState): CodeSpanIndex {
const fenceSpans = parseFenceSpans(text);
const startState = inlineState
? { open: inlineState.open, ticks: inlineState.ticks }