Tony Day
Tony Day
Would you consider PRs that add an Anchor type and also maybe support for a ForeignObject type?
Sounds good - might be very easy or very hard. Just making notes: https://hackage.haskell.org/package/diagrams-svg-1.4.1/changelog svgClass was deprecated in 1.4. I don't know why. https://hackage.haskell.org/package/diagrams-svg-1.3.1.10/docs/Diagrams-Backend-SVG-Attributes.html https://stackoverflow.com/questions/30925400/setting-id-and-class-with-the-haskell-diagrams-package?rq=1
https://groups.google.com/forum/#!topic/diagrams-discuss/VOTjjDGQ-tg
Ok, so it's hard and will take some time. But it's an awesome feature and I'm going to give it a go.
Do you have an example of some tex Text I can render as a test?
Had a look at doing this and it would be a tough slog to get mathjax working inside svg that has been rendered by diagrams. See https://stackoverflow.com/questions/15962325/mathjax-inside-svg
Having a Main.lhs rather than a Main.hs would make this much easier. Pandoc has a markdown+lhs option so rendering would then be something like: pandoc -i Main.lhs -o main.pdf -f...
I imagine it being a subset of the markdown enhancements given that arbitrary html is part of most markdown standards.
Includes a good summary of why multi-line comments are preferred. https://kowainik.github.io/posts/haddock-tips
It's a bit heavy-weight, but I do this sort of thing now via the pandocs API and classes, which is a joy but there are quirks. http://hackage.haskell.org/package/readme-lhs is an example.