test: add command arg parsing coverage (#936) (thanks @thewilloftheshadow)
This commit is contained in:
1 parent
6ccb19e274
commit
6ff3c39989
2 files changed
+98
-4
No files matched your search
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user