Style editor Markdown with .markdown-body and add ::: design blocks #52

Merged
Tom merged 1 commits from design/markdown-blocks into main 2026-10-01 12:54:24 +02:00
Owner

Closes #41

Editor-written Markdown (page bodies, posts, FAQ answers, list intros) now renders inside .markdown-body and gets a consistent look; editors can lay out pages themselves with ::: blocks.

  • Markdown.cs: UseCustomContainers (design blocks), UsePipeTables (tables), DisableHtml (raw HTML is escaped; it was passed through before). Paragraphs/list items consisting of a single link get the class lone-link (mail button, PDF card).
  • app.css: styles for headings, lists, quotes, links, external/PDF links, tables, images, hr and the blocks kennzahlen, aufruf, kacheln, hinweis; new --color-button token with dark variant.
  • Tests: MarkdownTests (unit) and a route smoke test for .markdown-body + container on /patrons.
  • docs/redaktion.md: new section "Gestaltungsbausteine". Dev seed: new bodies for patrons, contact, downloads. Schema unchanged.

Check before merge

  • Does any production body contain raw HTML? It would show up as text after deploy.
  • The PDFs linked in the new downloads body do not exist under wwwroot/dokumente/ yet.
  • Route smoke tests (Docker) not run yet.
Closes #41 Editor-written Markdown (page bodies, posts, FAQ answers, list intros) now renders inside `.markdown-body` and gets a consistent look; editors can lay out pages themselves with `:::` blocks. - `Markdown.cs`: `UseCustomContainers` (design blocks), `UsePipeTables` (tables), `DisableHtml` (raw HTML is escaped; it was passed through before). Paragraphs/list items consisting of a single link get the class `lone-link` (mail button, PDF card). - `app.css`: styles for headings, lists, quotes, links, external/PDF links, tables, images, hr and the blocks `kennzahlen`, `aufruf`, `kacheln`, `hinweis`; new `--color-button` token with dark variant. - Tests: `MarkdownTests` (unit) and a route smoke test for `.markdown-body` + container on `/patrons`. - `docs/redaktion.md`: new section "Gestaltungsbausteine". Dev seed: new bodies for patrons, contact, downloads. Schema unchanged. **Check before merge** - Does any production body contain raw HTML? It would show up as text after deploy. - The PDFs linked in the new downloads body do not exist under `wwwroot/dokumente/` yet. - Route smoke tests (Docker) not run yet.
Tom added 1 commit 2026-10-01 12:54:15 +02:00
Tom merged commit a641beab16 into main 2026-10-01 12:54:24 +02:00
Tom deleted branch design/markdown-blocks 2026-10-01 12:54:25 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tom/Elternbeirat#52