mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(test): test for no language tag for codeblock export
This commit is contained in:
		| @@ -37,5 +37,16 @@ describe("Markdown export", () => { | ||||
|             \`\`\``; | ||||
|  | ||||
|         expect(markdownExportService.toMarkdown(html)).toBe(expected); | ||||
|     }) | ||||
|     }); | ||||
|  | ||||
|     it("supports code block with no language tag", () => { | ||||
|         const html = trimIndentation`\ | ||||
|             <pre><code>Hello</code></pre>`; | ||||
|         const expected = trimIndentation`\ | ||||
|             \`\`\` | ||||
|             Hello | ||||
|             \`\`\``; | ||||
|  | ||||
|         expect(markdownExportService.toMarkdown(html)).toBe(expected); | ||||
|     }); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user