diff --git a/README.md b/README.md index 55375e6..7936b66 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,13 @@ The selected interface language is stored in the browser and can be changed from - Alert blocks: `success`, `info`, `warning`, and `danger`. - Table of contents generated with `[TOC]`, using headings after the marker and nesting them by level. - Optional line numbers in fenced code blocks. -- PDF export with selectable A5/A4/A3, Letter, 16:9, and 4:3 page formats; optional color/background preservation keeps syntax highlighting, alerts, quotes, highlights, and table styling; `---` creates a hard PDF page break. +- PDF export with selectable A5/A4/A3, Letter, 16:9, and 4:3 page formats; optional color/background preservation keeps syntax highlighting, alerts, quotes, highlights, and table styling; `[PAGEBREAK]` creates an explicit hard PDF page break while `---` remains a normal Markdown horizontal rule. ## PDF export and page breaks Use the **PDF** button in the editor header to choose the page format and margins, then generate a browser-native PDF print view. The export supports A5/A4/A3, Letter, 16:9, and 4:3 layouts. Enable **Preserve colors and backgrounds** to keep syntax highlighting, alerts, quotes, highlighted text, table headers, inline code, links, and other styled Markdown elements. The exporter re-applies Highlight.js to the print copy and uses a print-safe light color palette so code colors do not depend on the editor theme. The end of the exported document includes one subtle localized RustPad footer. -A Markdown line containing only `---` is treated as a page break during PDF export. Insert it from **More → Page break (PDF)** or with `Ctrl/Cmd+Enter`. In the editor preview it remains visible as a dashed horizontal divider. +A Markdown line containing only `[PAGEBREAK]` creates an explicit page break during PDF export. Insert it from **More → Page break (PDF)** or with `Ctrl/Cmd+Enter`. A normal `---` remains a Markdown horizontal rule and no longer forces a new PDF page. ## Fenced code blocks and language aliases diff --git a/lang/en.json b/lang/en.json index ffc219b..6e4768e 100644 --- a/lang/en.json +++ b/lang/en.json @@ -384,7 +384,7 @@ "editor.pageBreak": "Page break (PDF)", "editor.pageBreakShortcut": "Page break (PDF) · Ctrl/Cmd+Enter", "editor.pageFormat": "Page format", - "editor.pdfPageBreakHelp": "Use --- or Ctrl/Cmd+Enter to start a new PDF page.", + "editor.pdfPageBreakHelp": "Use Page break (PDF) or Ctrl/Cmd+Enter to start a new PDF page.", "editor.preservePdfColors": "Preserve colors and backgrounds", "editor.pdfColorHelp": "Keeps syntax highlighting, alerts, quotes, highlights, table headers, and other colors in the PDF.", "editor.pdfPrintHelp": "The browser print dialog will open. Choose Save as PDF.", diff --git a/lang/pl.json b/lang/pl.json index f3a2731..baf9adf 100644 --- a/lang/pl.json +++ b/lang/pl.json @@ -384,7 +384,7 @@ "editor.pageBreak": "Podział strony (PDF)", "editor.pageBreakShortcut": "Podział strony (PDF) · Ctrl/Cmd+Enter", "editor.pageFormat": "Format strony", - "editor.pdfPageBreakHelp": "Użyj --- lub Ctrl/Cmd+Enter, aby rozpocząć nową stronę PDF.", + "editor.pdfPageBreakHelp": "Użyj opcji Podział strony (PDF) lub Ctrl/Cmd+Enter, aby rozpocząć nową stronę PDF.", "editor.preservePdfColors": "Zachowaj kolory i tła", "editor.pdfColorHelp": "Zachowuje w PDF kolorowanie składni, alerty, cytaty, wyróżnienia, nagłówki tabel i inne kolory.", "editor.pdfPrintHelp": "Otworzy się okno drukowania przeglądarki. Wybierz Zapisz jako PDF.", diff --git a/static/editor.html b/static/editor.html index a30b859..31a6ac9 100644 --- a/static/editor.html +++ b/static/editor.html @@ -273,7 +273,7 @@