test: add command arg parsing coverage (#936) (thanks @thewilloftheshadow)
This commit is contained in:
@@ -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