markdown-up 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/app.js +1 -0
  2. package/package.json +1 -1
package/lib/app.js CHANGED
@@ -153,6 +153,7 @@ export class MarkdownUp {
153
153
  // Set the colors
154
154
  const isDarkMode = this.paramsLocal.darkMode ?? this.darkMode;
155
155
  this.window.document.documentElement.style.setProperty('--barescript-dark-mode', isDarkMode ? '1' : '0');
156
+ this.window.document.documentElement.style.colorScheme = isDarkMode ? 'dark' : 'light';
156
157
 
157
158
  // Set the font size
158
159
  const fontSize = this.paramsLocal.fontSize ?? this.fontSize;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "markdown-up",
4
- "version": "4.0.2",
4
+ "version": "4.0.3",
5
5
  "description": "MarkdownUp is a Markdown viewer",
6
6
  "keywords": [
7
7
  "markdown",