Skip to content

Render Markdown uploads into branded HTML pages#13

Merged
AliOsm merged 1 commit into
mainfrom
claude/markdown-publishing-branded
Jul 3, 2026
Merged

Render Markdown uploads into branded HTML pages#13
AliOsm merged 1 commit into
mainfrom
claude/markdown-publishing-branded

Conversation

@AliOsm

@AliOsm AliOsm commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Accept .md/.markdown uploads (web and API) and render them server-side into
self-contained, brand-styled HTML pages, so the stored paste is still HTML and
every existing endpoint (raw, render, live origin, /markdown read-back, source
view, title extraction) keeps working.

  • MarkdownDocument: GitHub-flavored Markdown via commonmarker (tables, task
    lists, strikethrough, autolinks, footnotes), code highlighted with Rouge
    (github.dark, no runtime fetch), and mermaid fences left as
     upgraded by a pinned CDN module injected only when a diagram is
    present. Raw HTML in the Markdown is dropped; the plain HTML upload path
    remains for arbitrary markup.
  • Paste: detect Markdown by filename, render at ingest via render_content
    (shared by from_upload and republish), and widen filename validation.
  • API: also detect a text/markdown body and default its filename to .md.
  • Web: dropzone and file input accept .md/.markdown; constraints copy updated
    (en + ar).
  • llms.txt: document the Markdown upload path; keep the mark-it-down guide as
    the no-server alternative.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01K8nFQAeyYDYaNFUjtzaEvg

Accept .md/.markdown uploads (web and API) and render them server-side into
self-contained, brand-styled HTML pages, so the stored paste is still HTML and
every existing endpoint (raw, render, live origin, /markdown read-back, source
view, title extraction) keeps working.

- MarkdownDocument: GitHub-flavored Markdown via commonmarker (tables, task
  lists, strikethrough, autolinks, footnotes), code highlighted with Rouge
  (github.dark, no runtime fetch), and mermaid fences left as <pre class=
  "mermaid"> upgraded by a pinned CDN module injected only when a diagram is
  present. Raw HTML in the Markdown is dropped; the plain HTML upload path
  remains for arbitrary markup.
- Paste: detect Markdown by filename, render at ingest via render_content
  (shared by from_upload and republish), and widen filename validation.
- API: also detect a text/markdown body and default its filename to .md.
- Web: dropzone and file input accept .md/.markdown; constraints copy updated
  (en + ar).
- llms.txt: document the Markdown upload path; keep the mark-it-down guide as
  the no-server alternative.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K8nFQAeyYDYaNFUjtzaEvg
@AliOsm AliOsm merged commit 80532d4 into main Jul 3, 2026
3 checks passed
@AliOsm AliOsm deleted the claude/markdown-publishing-branded branch July 3, 2026 12:59
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.

2 participants