Repository navigation
Alert boxes (> [!NOTE], > [!WARNING], Obsidian and DocC asides) now render the same in HTML, EPUB, PDF, Pages and DOCX, take their colours from your CSS everywhere, and round-trip back to Markdown. Zip containers get readable file permissions.
Alerts in every format
- One alert model for every writer (#114).
MarkdownAlertBlockdetects GitHub[!KIND], Obsidian custom titles and kinds, and DocCKind:asides. Text after[!KIND]is now the box's title, as in Obsidian.MarkdownAlertPaletteandMarkdownAlertLayoutgenerate the HTML, PDF and EPUB styles. The EPUB stylesheet now styles the boxes. - Pages: native Borders & Rules boxes with one style variation per kind, spaced like the CSS (#114). A box that opens a page keeps its top padding (#117). Block quotes read back as
>and rules are real bottom-border paragraphs that read back as---(#114). - DOCX: boxes are paragraph borders and shading on a "Callout KIND" style pair rather than text boxes, so they split across pages and stay editable text (#114).
- Colours from CSS (#116).
MarkdownAlertColorsreads.markdown-alert/.markdown-alert-KINDrules with browser-style precedence.MarkdownToPages.convertandMarkdownToDocx.converttakealertColors:, andswifttext render --csspasses them through, so one stylesheet colours the boxes in every format.
Fixes
- Zip entries are
rw-r--r--(#115). Every entry of a.docxor.epubSwiftText wrote had mode0100000, sounzipextracted unreadable files.
API
MarkdownAlertBlock,MarkdownAlertPalette,MarkdownAlertLayout,MarkdownAlertColors,PagesBoxLayout.alertColors:onMarkdownToPages.convertandMarkdownToDocx.convert.DocxWriter.alertColors.