Skip to content

feat(markdown): open local .md files + full-screen reading view - #379

Merged
slaveofcode merged 17 commits into
developfrom
feat/markdown-viewer-open-fullscreen
Sep 11, 2026
Merged

feat(markdown): open local .md files + full-screen reading view#379
slaveofcode merged 17 commits into
developfrom
feat/markdown-viewer-open-fullscreen

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

What

Turns Markdown Preview into a proper viewer — the ask: use it as a Markdown reader on a phone instead of installing an app.

  • Open local .md file — an Open .md file button and drag-and-drop; loads client-side via file.text() (nothing uploaded), landing in reading (Preview) mode.
  • Edit / Preview / Split toggle.
  • Full-screen expand — reuses the shared useExpand hook (native Fullscreen API + iOS CSS-overlay fallback, Esc to exit), like the games/Teleprompter.

Rendering (marked + DOMPurify) moved into a pure, unit-tested markdown.lib alongside isMarkdownFile / titleFromFileName.

Tests

  • Unit: markdown.lib (19 cases: render/sanitise, file-type detection, title). Full suite 2234 green.
  • E2E e2e/tools/markdown.spec.ts: open file → renders heading; toggle full-screen → Exit. Generic sample.md fixture.
  • EN + ID SEO refreshed; both /tools/markdown/ and /id/tools/markdown/ build. Lint 0 errors.

First of the viewer improvements — full-screen for the other viewers follows in a second PR; per-tool PWA install will get its own spec.

Promote: MCP-style tool harness + identity fix
Promote: SVG gen + office tools + v2 code-canvas
Promote: native function-calling + svg/canvas recovery
Promote to production: agent weak-model shortcut, size display, cloud settings persistence
docs: rework README for GitHub exposure (screenshots + 193-tool showcase)
Promote to production: Ask Agent E2E suite + mobile README
Fix CI: scope vitest to src/ (ignore Playwright e2e specs)
Add all-tools render smoke (E2E)
Desktop release 1.0.0-beta.6
Fix mobile video download + large-file error
Fix the real mobile download path + more OOM messages
Promote to production: Daily Word Guess + Fruit Merge
Fix Sort Text Lines: blank-line ordering + box alignment
Fix Clipboard Inspector: saved image was invalid (66 bytes)
Promote to production: countdown date-time picker + timer tab-titles + live Digital Clock
Turn the Markdown Preview into a proper viewer: an 'Open .md file'
button and drag-and-drop load a local Markdown document (client-side,
via file.text() — nothing uploaded), landing in reading mode. Add an
Edit / Preview / Split toggle and a full-screen expand (reusing the
shared useExpand hook: native Fullscreen API + iOS CSS-overlay
fallback) so it works as a lightweight Markdown reader on a phone.

Rendering (marked + DOMPurify) moves into a pure, unit-tested
markdown.lib alongside isMarkdownFile / titleFromFileName. Happy-path
E2E (open file → render, toggle full-screen) with a generic fixture;
EN + ID SEO refreshed for the viewer capabilities.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
goodwebtools 2ed3c69 Sep 11 2026, 08:58 AM

@slaveofcode
slaveofcode merged commit d1a815f into develop Sep 11, 2026
2 of 3 checks passed
@slaveofcode
slaveofcode deleted the feat/markdown-viewer-open-fullscreen branch September 11, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant