From 9b8b1d9e8561acc0fc1d738f652822a74a279f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Thu, 28 Apr 2022 16:56:41 +0200 Subject: [PATCH] Also remove first space from content string --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aed64f0..661b426 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ function isTodoItem(tokens, index) { function todoify(token, TokenConstructor) { token.children.unshift(makeCheckbox(token, TokenConstructor)); token.children[1].content = token.children[1].content.slice(3); - token.content = token.content.slice(3); + token.content = token.content.slice(4); if (useLabelWrapper) { if (useLabelAfter) {