Open johannes-z opened 1 year ago
I think this can be achieved by adding a config setting to the extension for the --force-appendix
flag.
--force-appendix $D2_FORCE_APPENDIX an appendix for tooltips and links is added to PNG exports since they are not interactive. --force-appendix adds an appendix to SVG exports as well (default false)
Hi, I'm using the vscode extension for d2, writing in markdown and using d2 code blocks. It would be cool if there was an opt-in setting to print tooltips on shapes as footnotes, just like when exporting to pdf/png.
The flag could either be an option in d2, or a flag on the cli, e.g.
--footnotes
:Additionally, tooltips on connections would also be nice. When they are converted to footnotes, they could be numbered/ordered using
a
,b
and so on instead of numbers, and have an indent, similar to how lists work in markdown.Example:
Footnotes printed: