mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +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); |         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