Skip to content

Commit bedb4b7

Browse files
authored
Add hint to avoid browser quirks mode (sindresorhus#117)
1 parent e771b61 commit bedb4b7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ You may know that now GitHub supports more than 2 themes including `dark_dimmed`
5858

5959
See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own.
6060

61+
## Troubleshooting
62+
63+
If you encounter styling issues, like tables in dark mode rendering their fonts in black, the browser might uses [quirks mode](https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode) by accident.
64+
65+
To avoid quirks mode, always include a doctype at the top of your page.
66+
67+
```html
68+
<!doctype html>
69+
<html lang="en"><head></head><body></body></html>
70+
```
71+
6172
## Dev
6273

6374
Run `npm run make` to update the CSS.

0 commit comments

Comments
 (0)