From 41b1c55988a9a65005ac0b9e1ddcc0596c047a49 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 5 Sep 2020 02:50:36 +0300 Subject: [PATCH] Disable list formatting and converting to HTML. Fixes: - Checklist + card title with starting number and point #2696 - How to begin a card title with "3. "? #1421 - GFM checklist not displayed properly in card title #2818 Thanks to xet7 ! Fixes #2696, fixes #1421, fixes #2818 --- packages/markdown/marked/lib/marked.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/markdown/marked/lib/marked.js b/packages/markdown/marked/lib/marked.js index 2c59dc607..de64d1eba 100644 --- a/packages/markdown/marked/lib/marked.js +++ b/packages/markdown/marked/lib/marked.js @@ -4,6 +4,23 @@ * https://github.com/markedjs/marked */ +/* +Wekan Changes: + +Disable list formatting and converting to HTML. Fixes: +- Checklist + card title with starting number and point + https://github.com/wekan/wekan/issues/2696 +- How to begin a card title with "3. "? + https://github.com/wekan/wekan/issues/1421 +- GFM checklist not displayed properly in card title #2818 + https://github.com/wekan/wekan/issues/2818 + +With below using this code, search with text "Wekan": + //var cap = this.rules.block.list.exec(src); + // Wekan: do not autonumber lists: + cap = false; +*/ + /** * DO NOT EDIT THIS FILE * The code in this file is generated from files in ./src/ @@ -584,7 +601,9 @@ }; _proto.list = function list(src) { - var cap = this.rules.block.list.exec(src); + //var cap = this.rules.block.list.exec(src); + // Wekan: do not autonumber lists: + cap = false; if (cap) { var raw = cap[0];