Skip to content

Commit 32550ee

Browse files
committed
Add a regression test for DOCTYPE presence
1 parent f27ceae commit 32550ee

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: DOCTYPE is not lost when using embed-resources
3+
embed-resources: true
4+
_quarto:
5+
tests:
6+
html:
7+
ensureHtmlElements:
8+
- []
9+
- []
10+
ensureFileRegexMatches:
11+
- ['\<\!DOCTYPE html\>']
12+
- []
13+
revealjs:
14+
ensureHtmlElements:
15+
- []
16+
- []
17+
ensureFileRegexMatches:
18+
- ['\<\!DOCTYPE html\>']
19+
- []
20+
---
21+
22+
Example from https://github.com/quarto-dev/quarto-cli/issues/12295: Not having DOCTYPE lead to browser using a Quirk mode for CSS, and not applying the standard HTML5.
23+
24+
## Header
25+
26+
```bash
27+
quarto render --help
28+
```

0 commit comments

Comments
 (0)