diff --git a/src/utils/renderer.ts b/src/utils/renderer.ts index 4127c0d..2801ea2 100644 --- a/src/utils/renderer.ts +++ b/src/utils/renderer.ts @@ -193,11 +193,11 @@ export function initRenderer(opts: IOpts) { return styledContent(`listitem`, `${prefix}${content}`, `li`) }, - list({ ordered, items }: Tokens.List): string { + list({ ordered, items, start = 1 }: Tokens.List): string { const listItems = [] for (let i = 0; i < items.length; i++) { isOrdered = ordered - listIndex = i + listIndex = Number(start) + i - 1 const item = items[i] listItems.push(this.listitem(item)) }