Merge pull request #911 from TriliumNext/renovate/marked-15.x

fix(deps): update dependency marked to v15.0.6
This commit is contained in:
Elian Doran 2025-01-10 22:05:18 +02:00 committed by GitHub
commit ef8708ab2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 7 deletions

8
package-lock.json generated
View File

@ -68,7 +68,7 @@
"katex": "0.16.19", "katex": "0.16.19",
"knockout": "3.5.1", "knockout": "3.5.1",
"mark.js": "8.11.1", "mark.js": "8.11.1",
"marked": "15.0.5", "marked": "15.0.6",
"mermaid": "11.4.1", "mermaid": "11.4.1",
"mime-types": "2.1.35", "mime-types": "2.1.35",
"mind-elixir": "4.3.5", "mind-elixir": "4.3.5",
@ -13058,9 +13058,9 @@
} }
}, },
"node_modules/marked": { "node_modules/marked": {
"version": "15.0.5", "version": "15.0.6",
"resolved": "https://registry.npmjs.org/marked/-/marked-15.0.5.tgz", "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.6.tgz",
"integrity": "sha512-xN+kSuqHjxWg+Q47yhhZMUP+kO1qHobvXkkm6FX+7N6lDvanLDd8H7AQ0jWDDyq+fDt/cSrJaBGyWYHXy0KQWA==", "integrity": "sha512-Y07CUOE+HQXbVDCGl3LXggqJDbXDP2pArc2C1N1RRMN0ONiShoSsIInMd5Gsxupe7fKLpgimTV+HOJ9r7bA+pg==",
"license": "MIT", "license": "MIT",
"bin": { "bin": {
"marked": "bin/marked.js" "marked": "bin/marked.js"

View File

@ -113,7 +113,7 @@
"katex": "0.16.19", "katex": "0.16.19",
"knockout": "3.5.1", "knockout": "3.5.1",
"mark.js": "8.11.1", "mark.js": "8.11.1",
"marked": "15.0.5", "marked": "15.0.6",
"mermaid": "11.4.1", "mermaid": "11.4.1",
"mime-types": "2.1.35", "mime-types": "2.1.35",
"mind-elixir": "4.3.5", "mind-elixir": "4.3.5",

View File

@ -1,5 +1,5 @@
import markdownExportService from "../../../src/services/export/md.js"; import markdownExportService from "./md.js";
import { trimIndentation } from "../../support/utils.js"; import { trimIndentation } from "../../../spec/support/utils.js";
describe("Markdown export", () => { describe("Markdown export", () => {
it("trims language tag for code blocks", () => { it("trims language tag for code blocks", () => {

View File

@ -0,0 +1,19 @@
import { trimIndentation } from "../../../spec/support/utils.js";
import markdownService from "./markdown.js";
describe("markdown", () => {
it("converts h1 heading", () => {
const result = markdownService.renderToHtml(trimIndentation`\
# Hello
## world
# another one
Hello, world
`, "title");
expect(result).toBe(trimIndentation`\
<h2>Hello</h2>
<h2>world</h2>
<h2>another one</h2>
<p>Hello, world</p>
`);
});
});