mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-12 17:44:01 +01:00
fix(markdown): prevent task lists with links from corrupting DOM
Disables label wrapping in markdown-it-task-lists plugin configuration. When enabled, markdown-it-task-lists wraps task list content in <label> tags, which malforms HTML structure when items contain links on the same line and swallows subsequent DOM elements. Fixes #715
This commit is contained in:
1 parent
daae736907
commit
15c0435dde
2 files changed
+66
-1
No files matched your search
@@ -674,7 +674,7 @@ export class MarkdownEditor {
|
||||
.use(emoji) // Emoji: :smile: -> 😄
|
||||
.use(ins) // Inserted text: ++text++ -> <ins>text</ins>
|
||||
.use(mark) // Marked text: ==text== -> <mark>text</mark>
|
||||
.use(taskLists, { enabled: true, label: true, labelAfter: true }) // Task lists: - [x] done
|
||||
.use(taskLists, { enabled: true, label: false }) // Task lists: - [x] done
|
||||
.use(anchor, { permalink: false }) // Header anchors
|
||||
.use(tocDoneRight); // Table of contents: ${toc}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user