Skip to content

Commit 42b31e4

Browse files
feat: add Markdown formatting toolbar with various editing options
1 parent f6eb342 commit 42b31e4

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,58 @@ <h5>Menu</h5>
254254
</button>
255255
</div>
256256

257+
<!-- Markdown Formatting Toolbar -->
258+
<div class="markdown-format-toolbar" id="markdown-format-toolbar" role="toolbar" aria-label="Markdown formatting toolbar">
259+
<div class="markdown-toolbar-group">
260+
<button type="button" class="markdown-tool-btn" data-md-action="undo" title="Undo" aria-label="Undo"><i class="bi bi-arrow-counterclockwise"></i></button>
261+
<button type="button" class="markdown-tool-btn" data-md-action="redo" title="Redo" aria-label="Redo"><i class="bi bi-arrow-clockwise"></i></button>
262+
</div>
263+
<div class="markdown-toolbar-group">
264+
<button type="button" class="markdown-tool-btn" data-md-action="bold" title="Bold" aria-label="Bold"><i class="bi bi-type-bold"></i></button>
265+
<button type="button" class="markdown-tool-btn" data-md-action="strike" title="Strikethrough" aria-label="Strikethrough"><i class="bi bi-type-strikethrough"></i></button>
266+
<button type="button" class="markdown-tool-btn" data-md-action="italic" title="Italic" aria-label="Italic"><i class="bi bi-type-italic"></i></button>
267+
<button type="button" class="markdown-tool-btn" data-md-action="quote" title="Blockquote" aria-label="Blockquote"><i class="bi bi-quote"></i></button>
268+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="title-case" title="Title case" aria-label="Title case">Aa</button>
269+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="uppercase" title="Uppercase" aria-label="Uppercase">A</button>
270+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="lowercase" title="Lowercase" aria-label="Lowercase">a</button>
271+
</div>
272+
<div class="markdown-toolbar-group heading-group">
273+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="1" title="Heading 1" aria-label="Heading 1">H1</button>
274+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="2" title="Heading 2" aria-label="Heading 2">H2</button>
275+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="3" title="Heading 3" aria-label="Heading 3">H3</button>
276+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="4" title="Heading 4" aria-label="Heading 4">H4</button>
277+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="5" title="Heading 5" aria-label="Heading 5">H5</button>
278+
<button type="button" class="markdown-tool-btn text-tool" data-md-action="heading" data-md-level="6" title="Heading 6" aria-label="Heading 6">H6</button>
279+
</div>
280+
<div class="markdown-toolbar-group">
281+
<button type="button" class="markdown-tool-btn" data-md-action="unordered-list" title="Bulleted list" aria-label="Bulleted list"><i class="bi bi-list-ul"></i></button>
282+
<button type="button" class="markdown-tool-btn" data-md-action="ordered-list" title="Numbered list" aria-label="Numbered list"><i class="bi bi-list-ol"></i></button>
283+
<button type="button" class="markdown-tool-btn" data-md-action="horizontal-rule" title="Horizontal rule" aria-label="Horizontal rule"><i class="bi bi-dash-lg"></i></button>
284+
</div>
285+
<div class="markdown-toolbar-group">
286+
<button type="button" class="markdown-tool-btn" data-md-action="link" title="Link" aria-label="Link"><i class="bi bi-link-45deg"></i></button>
287+
<button type="button" class="markdown-tool-btn" data-md-action="anchor" title="Anchor" aria-label="Anchor"><i class="bi bi-anchor"></i></button>
288+
<button type="button" class="markdown-tool-btn" data-md-action="image" title="Image" aria-label="Image"><i class="bi bi-card-image"></i></button>
289+
<button type="button" class="markdown-tool-btn" data-md-action="inline-code" title="Inline code" aria-label="Inline code"><i class="bi bi-code-slash"></i></button>
290+
<button type="button" class="markdown-tool-btn" data-md-action="code-block" title="Code block" aria-label="Code block"><i class="bi bi-file-code"></i></button>
291+
<button type="button" class="markdown-tool-btn" data-md-action="table" title="Table" aria-label="Table"><i class="bi bi-table"></i></button>
292+
<button type="button" class="markdown-tool-btn" data-md-action="date-time" title="Date and time" aria-label="Date and time"><i class="bi bi-clock"></i></button>
293+
<button type="button" class="markdown-tool-btn" data-md-action="emoji" title="Emoji shortcode" aria-label="Emoji shortcode"><i class="bi bi-emoji-smile"></i></button>
294+
<button type="button" class="markdown-tool-btn" data-md-action="copyright" title="Copyright" aria-label="Copyright"><i class="bi bi-c-circle"></i></button>
295+
<button type="button" class="markdown-tool-btn" data-md-action="alert-note" title="Markdown alert" aria-label="Markdown alert"><i class="bi bi-newspaper"></i></button>
296+
<button type="button" class="markdown-tool-btn" data-md-action="terminal-block" title="Terminal block" aria-label="Terminal block"><i class="bi bi-terminal"></i></button>
297+
</div>
298+
<div class="markdown-toolbar-group">
299+
<button type="button" class="markdown-tool-btn" data-md-action="editor-only" title="Editor only" aria-label="Editor only"><i class="bi bi-eye-slash"></i></button>
300+
<button type="button" class="markdown-tool-btn" data-md-action="split-view" title="Split view" aria-label="Split view"><i class="bi bi-display"></i></button>
301+
<button type="button" class="markdown-tool-btn" data-md-action="fullscreen" title="Fullscreen" aria-label="Fullscreen"><i class="bi bi-arrows-fullscreen"></i></button>
302+
<button type="button" class="markdown-tool-btn" data-md-action="clear-formatting" title="Clear Markdown formatting" aria-label="Clear Markdown formatting"><i class="bi bi-eraser"></i></button>
303+
<button type="button" class="markdown-tool-btn" data-md-action="find" title="Find in document" aria-label="Find in document"><i class="bi bi-search"></i></button>
304+
<button type="button" class="markdown-tool-btn" data-md-action="help" title="Toolbar help" aria-label="Toolbar help"><i class="bi bi-question-circle"></i></button>
305+
<button type="button" class="markdown-tool-btn" data-md-action="info" title="Document info" aria-label="Document info"><i class="bi bi-info-circle"></i></button>
306+
</div>
307+
</div>
308+
257309
<!-- Reset Confirmation Modal -->
258310
<div id="reset-confirm-modal" class="reset-modal-overlay" role="dialog" aria-modal="true" aria-labelledby="reset-modal-title" style="display:none;">
259311
<div class="reset-modal-box">

0 commit comments

Comments
 (0)