fix bug in test sample

This commit is contained in:
Connor Peet
2021-04-16 10:10:58 -07:00
parent 3e08e5a1bc
commit 0e9c32e1bb
2 changed files with 11 additions and 7 deletions

View File

@ -23,7 +23,7 @@ export const parseMarkdown = (text: string, events: {
if (heading) {
const [, pounds, name] = heading;
const range = new vscode.Range(new vscode.Position(lineNo, 0), new vscode.Position(lineNo, line.length));
events.onHeading(range, name, Number(pounds));
events.onHeading(range, name, pounds.length);
}
}
};