mirror of https://github.com/TriliumNext/Notes
Merge pull request #911 from TriliumNext/renovate/marked-15.x
fix(deps): update dependency marked to v15.0.6pull/915/head
commit
ef8708ab2b
@ -1,5 +1,5 @@
|
||||
import markdownExportService from "../../../src/services/export/md.js";
|
||||
import { trimIndentation } from "../../support/utils.js";
|
||||
import markdownExportService from "./md.js";
|
||||
import { trimIndentation } from "../../../spec/support/utils.js";
|
||||
|
||||
describe("Markdown export", () => {
|
||||
it("trims language tag for code blocks", () => {
|
||||
@ -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>
|
||||
`);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue