This commit is contained in:
Mateusz Gruszczyński committed 2026-10-12 12:19:33 +02:00
1 parent acfe926066
commit df403c0aa7
26 files changed
+1502 -144

No files matched your search

+46 -21
View File
@@ -27,7 +27,8 @@
<p id="document-url" class="document-url"></p>
</div>
<button id="favorite-toggle" class="favorite-toggle" type="button" aria-pressed="false"
title="Add to favorites" aria-label="Add to favorites" hidden><span aria-hidden="true">☆</span></button>
title="Add to favorites" aria-label="Add to favorites" hidden><span
aria-hidden="true">☆</span></button>
</div>
</div>
<span class="header-user-control user-color-control"><button id="current-user" class="user-chip" type="button"
@@ -42,7 +43,8 @@
<span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
</button>
<div id="header-actions" class="header-actions"><button id="copy-link" class="secondary-button">Copy
link</button><button id="export-pdf" class="secondary-button" type="button" title="Export PDF">PDF</button>
link</button><button id="export-pdf" class="secondary-button" type="button"
title="Export PDF">PDF</button>
<details class="page-settings">
<summary class="secondary-button" aria-label="Page options"><span class="page-settings__label"><span
class="page-settings__status" aria-hidden="true"></span>Page</span><span
@@ -124,11 +126,13 @@
data-format="definition">Definition</button><button type="button"
data-format="highlight">Highlight</button><button type="button"
data-format="subscript">Subscript</button><button type="button"
data-format="superscript">Superscript</button><button type="button" data-format="page-break" title="Page break (PDF) · Ctrl/Cmd+Enter">Page break (PDF)</button></div>
data-format="superscript">Superscript</button><button type="button"
data-format="page-break" title="Page break (PDF) · Ctrl/Cmd+Enter">Page break
(PDF)</button></div>
</details>
</div>
<button id="mobile-upload-button" class="mobile-upload-button" type="button"
title="Upload a file"><span aria-hidden="true"></span> Upload</button>
<button id="mobile-upload-button" class="mobile-upload-button" type="button" title="Upload a file"><span
aria-hidden="true"></span> Upload</button>
<div class="editor-controls"><label>Font<select class="app-select-input" id="font-family">
<option value="mono">Mono</option>
<option value="system">System</option>
@@ -141,8 +145,8 @@
<option value="18">18</option>
<option value="20">20</option>
<option value="22">22</option>
</select></label></div><button id="upload-button"
class="toolbar-action" title="Upload a file">Upload</button><input id="file-input" type="file" hidden><label
</select></label></div><button id="upload-button" class="toolbar-action"
title="Upload a file">Upload</button><input id="file-input" type="file" hidden><label
class="line-toggle"><input id="line-numbers-toggle" type="checkbox" checked> Editor
lines</label><label class="line-toggle"><input id="preview-line-numbers-toggle" type="checkbox">
Preview lines</label><label class="line-toggle"><input id="compact-toggle" type="checkbox" checked>
@@ -152,8 +156,8 @@
aria-pressed="true" aria-label="Markdown" title="Markdown"><span
class="control-label-full">Markdown</span><span class="control-label-short"
aria-hidden="true">M</span></button>
<button id="toolbar-collapse-toggle" class="toolbar-collapse-toggle" type="button"
aria-pressed="false" aria-label="Hide editor toolbar" title="Hide editor toolbar"><span
<button id="toolbar-collapse-toggle" class="toolbar-collapse-toggle" type="button" aria-pressed="false"
aria-label="Hide editor toolbar" title="Hide editor toolbar"><span
class="toolbar-collapse-toggle__icon" aria-hidden="true">⌃</span></button>
<div class="view-switch" aria-label="Editor view"><button data-view="edit" class="active"
aria-label="Edit" title="Edit"><span class="control-label-full">Edit</span><span
@@ -185,6 +189,11 @@
</div>
</div>
<div id="participant-badges" class="participant-badges" aria-label="Participants" hidden></div>
<div id="mentioned-users" class="mentioned-users" role="group" aria-label="Mentioned"
data-i18n-aria-label="editor.mentionedUsers" hidden>
<span class="mentioned-users__label" data-i18n="editor.mentionedUsers">Mentioned</span>
<div id="mentioned-users-list" class="mentioned-users__list"></div>
</div>
<div class="editor-shell">
<div id="line-gutter" class="line-gutter" aria-hidden="true"></div>
<div id="authorship-layer" class="authorship-layer" aria-hidden="true"></div>
@@ -194,6 +203,11 @@
</div>
<div class="preview-column">
<div id="preview-label" class="column-label">Markdown preview</div>
<div id="mentioned-users-preview" class="mentioned-users mentioned-users--preview" role="group"
aria-label="Mentioned" data-i18n-aria-label="editor.mentionedUsers" hidden>
<span class="mentioned-users__label" data-i18n="editor.mentionedUsers">Mentioned</span>
<div id="mentioned-users-preview-list" class="mentioned-users__list"></div>
</div>
<article id="preview" class="preview markdown-body"></article>
</div>
</div>
@@ -272,9 +286,12 @@
<p>Author, time, and version preview</p>
</div><button id="close-history" class="icon-button">×</button>
</div>
<div class="history-view-switch" role="group" aria-label="History view" data-i18n-aria-label="editor.historyView">
<button type="button" data-history-view="list" class="active" aria-pressed="true" data-i18n="editor.historyListView">List</button>
<button type="button" data-history-view="archive" aria-pressed="false" data-i18n="editor.historyArchiveView">Archive</button>
<div class="history-view-switch" role="group" aria-label="History view"
data-i18n-aria-label="editor.historyView">
<button type="button" data-history-view="list" class="active" aria-pressed="true"
data-i18n="editor.historyListView">List</button>
<button type="button" data-history-view="archive" aria-pressed="false"
data-i18n="editor.historyArchiveView">Archive</button>
</div>
<div id="history-list" class="history-list"></div>
</aside>
@@ -283,7 +300,8 @@
<form id="pdf-export-form" method="dialog" class="dialog-panel pdf-export-panel">
<button class="modal-close" type="button" data-pdf-cancel aria-label="Close dialog">×</button>
<h2>Export PDF</h2>
<p class="dialog-copy" data-i18n="editor.pdfPageBreakHelp">Use Page break (PDF) or Ctrl/Cmd+Enter to start a new PDF page.</p>
<p class="dialog-copy" data-i18n="editor.pdfPageBreakHelp">Use Page break (PDF) or Ctrl/Cmd+Enter to start a
new PDF page.</p>
<div class="pdf-export-fields">
<label><span>Page format</span><select class="app-select-input" id="pdf-page-format">
<option value="a4-portrait">A4 — Portrait</option>
@@ -303,12 +321,18 @@
</select></label>
</div>
<div class="pdf-export-options">
<label class="public-task-toggle pdf-export-title-toggle"><input id="pdf-include-title" type="checkbox"> Include document title</label>
<label class="public-task-toggle pdf-export-color-toggle"><input id="pdf-preserve-colors" type="checkbox"> <span data-i18n="editor.preservePdfColors">Preserve colors and backgrounds</span></label>
<label class="public-task-toggle pdf-export-title-toggle"><input id="pdf-include-title" type="checkbox">
Include document title</label>
<label class="public-task-toggle pdf-export-color-toggle"><input id="pdf-preserve-colors"
type="checkbox"> <span data-i18n="editor.preservePdfColors">Preserve colors and
backgrounds</span></label>
</div>
<p class="pdf-export-color-help" data-i18n="editor.pdfColorHelp">Keeps syntax highlighting, alerts, quotes, highlights, table headers, and other colors in the PDF.</p>
<p class="pdf-export-color-help" data-i18n="editor.pdfColorHelp">Keeps syntax highlighting, alerts, quotes,
highlights, table headers, and other colors in the PDF.</p>
<p class="pdf-export-help">The browser print dialog will open. Choose Save as PDF.</p>
<div class="dialog-actions"><button class="secondary-button" value="cancel" type="button" data-pdf-cancel>Cancel</button><button id="generate-pdf" class="primary-button" type="submit">Generate PDF</button></div>
<div class="dialog-actions"><button class="secondary-button" value="cancel" type="button"
data-pdf-cancel>Cancel</button><button id="generate-pdf" class="primary-button"
type="submit">Generate PDF</button></div>
</form>
</dialog>
<dialog id="shortcuts-dialog">
@@ -324,7 +348,8 @@
change</span><kbd>Ctrl/Cmd+Shift+Z</kbd><span>Redo</span><kbd>Ctrl/Cmd+B</kbd><span>Bold</span><kbd>Ctrl/Cmd+I</kbd><span>Italic</span><kbd>Ctrl/Cmd+Shift+X</kbd><span>Strikethrough</span><kbd>Ctrl/Cmd+K</kbd><span>Link</span><kbd>Ctrl/Cmd+Shift+7</kbd><span>Numbered
list</span><kbd>Ctrl/Cmd+Shift+8</kbd><span>Bullet list</span><kbd>Ctrl/Cmd+Shift+9</kbd><span>Task
list</span><kbd>Alt+1…4</kbd><span>Headings H1–H4</span><kbd>Tab</kbd><span>Indent by 2
spaces</span><kbd>Shift+Tab</kbd><span>Remove indentation</span><kbd>Ctrl/Cmd+Enter</kbd><span>Page break (PDF)</span>__EXTRA_SHORTCUTS__
spaces</span><kbd>Shift+Tab</kbd><span>Remove indentation</span><kbd>Ctrl/Cmd+Enter</kbd><span>Page
break (PDF)</span>__EXTRA_SHORTCUTS__
</div>
</div>
</dialog>
@@ -336,8 +361,7 @@
<p>Copy a direct link or ready Markdown/Alias code.</p>
</div>
<div class="files-head-actions">
<button id="files-upload-button" class="primary-button"
type="button">Upload file</button>
<button id="files-upload-button" class="primary-button" type="button">Upload file</button>
<button id="close-files" class="icon-button" type="button" aria-label="Close files">×</button>
</div>
</div>
@@ -456,7 +480,8 @@
</div>
</details>
</div>
<div id="toast" class="toast-region" aria-live="polite" aria-label="Notifications" aria-relevant="additions removals"></div>
<div id="toast" class="toast-region" aria-live="polite" aria-label="Notifications"
aria-relevant="additions removals"></div>
</body>
</html>