From 02eb491f0816766f3fa444df52cd9b47794bc4f1 Mon Sep 17 00:00:00 2001 From: slydor Date: Wed, 18 Dec 2024 20:33:08 +0100 Subject: [PATCH] Add hint to avoid browser quirks mode --- readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/readme.md b/readme.md index 486d8d9..abff134 100644 --- a/readme.md +++ b/readme.md @@ -58,6 +58,17 @@ You may know that now GitHub supports more than 2 themes including `dark_dimmed` See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own. +## Troubleshooting + +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. + +To avoid quirks mode, always include a doctype at the top of your page. + +```html + + +``` + ## Dev Run `npm run make` to update the CSS.