Skip to content

Commit ddba631

Browse files
authored
Merge pull request #27 from marcop135/fix/dark-mode-table-rows
fix: dark-mode OS makes preview tables unreadable
2 parents 0cb49e3 + d2ecd3e commit ddba631

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
**Labels:** **Build**, **Chore**, **CI**, **Docs**, **Enhance**, **Feat**, **Fix**, **Perf**, **Revert**, **Sec**, **Style**; add **(WIP)** for incomplete work.
44

5+
## [2.9.22] - 2026-05-10
6+
7+
- **Fix:** Load the light-only `github-markdown-css` variant so tables stay readable when the OS is in dark mode.
8+
59
## [2.9.21] - 2026-05-08
610

711
- **Fix:** Sync `document.title` to the first heading on edit so Android Firefox and Brave save PDFs with a real name.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "md2pdf",
3-
"version": "2.9.21",
3+
"version": "2.9.22",
44
"description": "Mobile-friendly Markdown to PDF in your browser with GFM, syntax highlighting, and Mermaid. Works offline; nothing is uploaded for conversion. Fork of realdennis/md2pdf (MIT).",
55
"keywords": [
66
"markdown",

src/App/Components/Markdown/Previewer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Suspense, lazy } from 'react';
22
import styled from 'styled-components';
33
import Loading from './Loading';
44
import ErrorBoundary from './ErrorBoundary.js';
5-
import 'github-markdown-css';
5+
import 'github-markdown-css/github-markdown-light.css';
66
const Wrapper = styled.div`
77
overflow-y: auto;
88
overflow-x: hidden;

src/App/Components/Markdown/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TextContainer } from '../../Container';
55
import Previewer from './Previewer';
66
import Editor from './Editor';
77
import DragBar from './DragBar.js';
8-
import 'github-markdown-css';
8+
import 'github-markdown-css/github-markdown-light.css';
99
import useDrop from '../../Container/Hooks/useDrop.js';
1010
import useIsMobile from '../../Container/Hooks/useIsMobile.js';
1111
import { DEFAULT_TITLE, extractHeading } from '../../Lib/printTitle.js';

0 commit comments

Comments
 (0)