imdone-core 1.43.4 → 1.43.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/task.js +1 -1
- package/package.json +1 -1
package/lib/task.js
CHANGED
|
@@ -512,7 +512,7 @@ Task.prototype.parseTodoTxt = function () {
|
|
|
512
512
|
Task.removeTags = function (text, prefix = '+') {
|
|
513
513
|
const positions = Task.getMarkdownCodePositions(text)
|
|
514
514
|
return text.replace(Task.getTagRegexp(prefix), (match, p1, p2, offset) => {
|
|
515
|
-
if (Task.isResultInMarkdownCode(positions, offset)) return match
|
|
515
|
+
if (Task.isResultInMarkdownCode(positions, offset) || match.includes('##')) return match
|
|
516
516
|
return ''
|
|
517
517
|
})
|
|
518
518
|
}
|