mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 17:29:29 +05:30
feat(editor): add CSV-to-markdown-table toolbar converter
Amit Haridas
This commit is contained in:
+22
-1
@@ -151,7 +151,7 @@
|
||||
</div>
|
||||
<div class="toolbar-separator"></div>
|
||||
<div class="toolbar-group">
|
||||
<!-- Insert: Link, Code, Code Block, Table, HR -->
|
||||
<!-- Insert: Link, Code, Code Block, Table, CSV Table, HR -->
|
||||
<button id="btn-link" title="Link" aria-label="Insert link">
|
||||
<svg
|
||||
width="16"
|
||||
@@ -212,6 +212,27 @@
|
||||
<line x1="15" y1="3" x2="15" y2="21"></line>
|
||||
</svg>
|
||||
</button>
|
||||
<button
|
||||
id="btn-csv-table"
|
||||
title="CSV → Table"
|
||||
aria-label="Convert selected CSV text to a markdown table"
|
||||
>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
||||
<line x1="3" y1="9" x2="21" y2="9"></line>
|
||||
<line x1="12" y1="9" x2="12" y2="21"></line>
|
||||
<path d="M7.5 12.5c0 1-.8 1.8-1.8 1.8"></path>
|
||||
<path d="M9 18.5c0-.8-.6-1.4-1.4-1.4"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button
|
||||
id="btn-horizontal-rule"
|
||||
title="Horizontal Rule"
|
||||
|
||||
Reference in New Issue
Block a user