We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398fff6 commit 984fd15Copy full SHA for 984fd15
test/converter.ts
@@ -132,6 +132,11 @@ describe('Converter', () => {
132
expect(result).toContain('<html lang="zh">')
133
})
134
135
+ it('prefers lang specified in Markdown than lang option', async () => {
136
+ const { result } = await instance().convert('<!-- lang: fr -->')
137
+ expect(result).toContain('<html lang="fr">')
138
+ })
139
+
140
it("overrides html option by converter's html option", async () => {
141
const defaultHtml = (await instance().convert('<i><br></i>')).rendered
142
expect(defaultHtml.html).toContain('<i><br /></i>')
0 commit comments