Export to Markdown (#20661)

* Give saveAsExcel its own config options

* Wired up correctly

* Merge conflicts

* PR comments 1

Co-authored-by: Ben Russell <russellben@microsoft.com>
This commit is contained in:
Benjamin Russell
2022-10-13 18:08:21 -05:00
committed by GitHub
parent bee1c6be44
commit 38eb0c8429
13 changed files with 216 additions and 14 deletions

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 16 16"
version="1.1"
id="svg228"
sodipodi:docname="saveMarkdown.svg"
xml:space="preserve"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs232" /><sodipodi:namedview
id="namedview230"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="90.509668"
inkscape:cx="5.7065727"
inkscape:cy="6.9605824"
inkscape:window-width="2560"
inkscape:window-height="1529"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg228" /><style
id="style221">.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-bg{fill:#424242}.icon-vs-fg{fill:#f0eff1}.icon-vs-action-blue{fill:#00539c}</style><path
class="icon-canvas-transparent"
d="M16 16H0V0h16v16z"
id="canvas" /><path
class="icon-vs-out"
d="M14 4.552V13c-.028.825-.593 2-2.035 2h-8C3.012 15 2 14.299 2 13V8H.586l2-2H0V2h2.586l-2-2h4.828l1 1h3.608L14 4.552z"
id="outline"
style="display: none;" /><path
class="icon-vs-fg"
d="M9 3.586L8.414 3H9v.586zM12 6h-2v7h2V6zm-6 7V7.414L5.414 8H4v5h2zm1 0h2V4.414l-1 1V6h-.586L7 6.414V13z"
id="iconFg"
style="display: none;" /><path
class="icon-vs-action-blue"
d="M8 4L5 7H3l2-2H1V3h4L3 1h2l3 3z"
id="colorAction" /><path
id="rect298"
style="color:#000000;fill:#424242;fill-opacity:1"
d="M 8.5234375 3.8164062 L 8.7070312 4 L 8.2382812 4.46875 L 13.816406 4.46875 C 14.00308 4.46875 14.142578 4.6102013 14.142578 4.796875 L 14.142578 11.201172 C 14.142578 11.387846 14.00308 11.527344 13.816406 11.527344 L 2.1835938 11.527344 C 1.9969199 11.527344 1.8574219 11.387846 1.8574219 11.201172 L 1.8574219 7 L 1.203125 7 L 1.203125 11.201172 C 1.203125 11.738585 1.6461799 12.181641 2.1835938 12.181641 L 13.816406 12.181641 C 14.353821 12.181641 14.796874 11.738585 14.796875 11.201172 L 14.796875 4.796875 C 14.796875 4.2594611 14.353821 3.8164063 13.816406 3.8164062 L 8.5234375 3.8164062 z " /><path
id="path300"
style="fill:#424242;fill-opacity:1;stroke-width:0.0653511"
d="M 6.9296875 5.7773438 L 6.5605469 6.1464844 L 5.5488281 7.4121094 L 5.4355469 7.2714844 L 5.2070312 7.5 L 2.9355469 7.5 L 2.9355469 10.222656 L 4.2421875 10.222656 L 4.2421875 7.6738281 L 5.5488281 9.3066406 L 6.8554688 7.6738281 L 6.8554688 10.222656 L 8.1640625 10.222656 L 8.1640625 5.7773438 L 6.9296875 5.7773438 z M 10.451172 5.7773438 L 10.451172 8.0644531 L 9.1445312 8.0644531 L 11.103516 10.222656 L 13.064453 8.0644531 L 11.757812 8.0644531 L 11.757812 5.7773438 L 10.451172 5.7773438 z " /><path
style="color:#000000;fill:#00539c;-inkscape-stroke:none"
d="M 8,4 5,7 H 3 L 5,5 H 1 V 3 H 5 L 3,1 h 2 z"
id="path1824" /></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 16 16"
version="1.1"
id="svg228"
sodipodi:docname="saveMarkdown_inverse.svg"
xml:space="preserve"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs232" /><sodipodi:namedview
id="namedview230"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="64"
inkscape:cx="12.460937"
inkscape:cy="5.828125"
inkscape:window-width="2560"
inkscape:window-height="1529"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg228" /><style
id="style221">.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-bg{fill:#424242}.icon-vs-fg{fill:#f0eff1}.icon-vs-action-blue{fill:#00539c}</style><path
class="icon-canvas-transparent"
d="M16 16H0V0h16v16z"
id="canvas" /><path
class="icon-vs-out"
d="M14 4.552V13c-.028.825-.593 2-2.035 2h-8C3.012 15 2 14.299 2 13V8H.586l2-2H0V2h2.586l-2-2h4.828l1 1h3.608L14 4.552z"
id="outline"
style="display: none;" /><path
class="icon-vs-fg"
d="M9 3.586L8.414 3H9v.586zM12 6h-2v7h2V6zm-6 7V7.414L5.414 8H4v5h2zm1 0h2V4.414l-1 1V6h-.586L7 6.414V13z"
id="iconFg"
style="display: none;" /><path
class="icon-vs-action-blue"
d="M8 4L5 7H3l2-2H1V3h4L3 1h2l3 3z"
id="colorAction" /><path
id="rect298"
style="color:#000000;fill:#c5c5c5;fill-opacity:1"
d="M 8.5234375 3.8164062 L 8.7070312 4 L 8.2382812 4.46875 L 13.816406 4.46875 C 14.00308 4.46875 14.142578 4.6102013 14.142578 4.796875 L 14.142578 11.201172 C 14.142578 11.387846 14.00308 11.527344 13.816406 11.527344 L 2.1835938 11.527344 C 1.9969199 11.527344 1.8574219 11.387846 1.8574219 11.201172 L 1.8574219 7 L 1.203125 7 L 1.203125 11.201172 C 1.203125 11.738585 1.6461799 12.181641 2.1835938 12.181641 L 13.816406 12.181641 C 14.353821 12.181641 14.796874 11.738585 14.796875 11.201172 L 14.796875 4.796875 C 14.796875 4.2594611 14.353821 3.8164063 13.816406 3.8164062 L 8.5234375 3.8164062 z " /><path
id="path300"
style="fill:#c5c5c5;fill-opacity:1;stroke-width:0.0653511"
d="M 6.9296875 5.7773438 L 6.5605469 6.1464844 L 5.5488281 7.4121094 L 5.4355469 7.2714844 L 5.2070312 7.5 L 2.9355469 7.5 L 2.9355469 10.222656 L 4.2421875 10.222656 L 4.2421875 7.6738281 L 5.5488281 9.3066406 L 6.8554688 7.6738281 L 6.8554688 10.222656 L 8.1640625 10.222656 L 8.1640625 5.7773438 L 6.9296875 5.7773438 z M 10.451172 5.7773438 L 10.451172 8.0644531 L 9.1445312 8.0644531 L 11.103516 10.222656 L 13.064453 8.0644531 L 11.757812 8.0644531 L 11.757812 5.7773438 L 10.451172 5.7773438 z " /><path
style="color:#000000;fill:#75beff;-inkscape-stroke:none;fill-opacity:1"
d="M 8,4 5,7 H 3 L 5,5 H 1 V 3 H 5 L 3,1 h 2 z"
id="path1824" /></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -63,6 +63,11 @@
background-image: url("saveExcel.svg");
}
.vs .codicon.saveMarkdown {
/* ResultToMarkdown_16x_vscode */
background-image: url("saveMarkdown.svg");
}
.vs .codicon.saveXml {
/* ResultToXML_16x_vscode */
background-image: url("saveXml.svg");
@@ -172,6 +177,12 @@
background-image: url("saveExcel_inverse.svg");
}
.vs-dark .codicon.saveMarkdown,
.hc-black .codicon.saveMarkdown {
/* ResultToMarkdown_16x_vscode_inverse.svg */
background-image: url("saveMarkdown_inverse.svg");
}
.vs-dark .codicon.saveXml,
.hc-black .codicon.saveXml {
/* ResultToXml_16x_vscode_inverse.svg */