diff --git a/packages/lexical-markdown/src/__tests__/unit/LexicalMarkdown.test.ts b/packages/lexical-markdown/src/__tests__/unit/LexicalMarkdown.test.ts index e5eb74bda..3c930fd6c 100644 --- a/packages/lexical-markdown/src/__tests__/unit/LexicalMarkdown.test.ts +++ b/packages/lexical-markdown/src/__tests__/unit/LexicalMarkdown.test.ts @@ -186,6 +186,15 @@ describe('Markdown', () => { html: '
Code
', md: '```\nCode\n```', }, + { + html: '
Code
', + md: '```javascript\nCode\n```', + }, + { + // Should always preserve language in md but keep data-highlight-language only for supported languages + html: '
Code
', + md: '```rust\nCode\n```', + }, { // Import only: prefix tabs will be removed for export html: '
Code
',