MacDownApp / MacDownApp/macdown

Make exported html file support dark mode on iOS

Open
#1,099 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Dear developers,

I am an iOS developer, I use MacDown to edit user manual file for my apps, export it to HTML file and show it on a web browser.

But the exported HTML file does support dark mode. So I have to add some code to the file, make it support dark mode.

Can you support to add these code in the export HTML as default?

`
@media (prefers-color-scheme: dark) {
body {
background-color: rgb(0,0,0);
color: white;
}
a:link {
color: #0096e2;
}
a:visited {
color: #9d57df;
}
h1{
color: white;
}
h2{
color: white;
}
}
`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by locating MacDown's HTML export entry point and the generated HTML template or stylesheet, then compare exported output in light and dark mode on iOS. Done means exported HTML includes the requested prefers-color-scheme behavior without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
desktop, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.