Contribution to Myst-Parser: Links from elements in SVG diagrams to other images or document content #1139
Answered
by
volkerjaenisch
volkerjaenisch
asked this question in
Ideas
|
Dear Developers! I have a prototype implementation for links from SVG elements to other images or document content (for HTML output). This feature comes in really handy if one has diagrams of different detail and like to link from the above-level diagram to sub diagrams. Or linking from a diagram to the definition, documentation, of a diagram portion, or element. The implemented strategy in overview.
|
Answered by
volkerjaenisch
Feb 25, 2024
Replies: 1 comment 2 replies
|
thanks @volkerjaenisch sounds cool! I would suggest it would be best to write a "standalone" sphinx extension, since:
But definitely let us know how it goes 😀 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Sphinx extension sphinxcontrib-svg-links 0.1.5 is online on github and PyPI.
Testers, Comments and Criticism are warmly welcome.
There is still a minor problem with MystParser. Its current release 2.0.0 does NOT work with sphinxcontrib-svg-links since the new attribute ":svglinks: True" to the image directive is not correctly handled by MystParser. I tracked the error down to
parsers/directive.py:189
This effectively sets any attribute to None which was set to True in markdown, which cannot be correct.
This erroneous behavior is already fixed i…