Skip to content

Commit c744e36

Browse files
authored
fix(deps): update dependency marked to v17 (#7652)
2 parents eada994 + 9d96b3d commit c744e36

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"leaflet": "1.9.4",
5454
"leaflet-gpx": "2.2.0",
5555
"mark.js": "8.11.1",
56-
"marked": "16.4.2",
56+
"marked": "17.0.0",
5757
"mermaid": "11.12.1",
5858
"mind-elixir": "5.3.6",
5959
"normalize.css": "8.0.1",

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"is-animated": "2.0.2",
104104
"is-svg": "6.1.0",
105105
"jimp": "1.6.0",
106-
"marked": "16.4.2",
106+
"marked": "17.0.0",
107107
"mime-types": "3.0.1",
108108
"multer": "2.0.2",
109109
"normalize-strings": "1.1.1",

apps/server/src/services/import/markdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CustomMarkdownRenderer extends Renderer {
6666
// Handle todo-list in the CKEditor format.
6767
if (item.task) {
6868
let itemBody = '';
69-
const checkbox = this.checkbox({ checked: !!item.checked });
69+
const checkbox = this.checkbox({ checked: !!item.checked, raw: "- [ ]", type: "checkbox" });
7070
if (item.loose) {
7171
if (item.tokens[0]?.type === 'paragraph') {
7272
item.tokens[0].text = checkbox + item.tokens[0].text;
@@ -86,7 +86,7 @@ class CustomMarkdownRenderer extends Renderer {
8686
itemBody += checkbox;
8787
}
8888

89-
itemBody += `<span class="todo-list__label__description">${this.parser.parse(item.tokens, !!item.loose)}</span>`;
89+
itemBody += `<span class="todo-list__label__description">${this.parser.parse(item.tokens.filter(t => t.type !== "checkbox"))}</span>`;
9090
return `<li><label class="todo-list__label">${itemBody}</label></li>`;
9191
}
9292

pnpm-lock.yaml

Lines changed: 25 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)