Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

pretty-print SVG output #11

Closed
pkra opened this issue Aug 29, 2017 · 0 comments
Closed

pretty-print SVG output #11

pkra opened this issue Aug 29, 2017 · 0 comments
Labels

Comments

@pkra
Copy link
Owner

pkra commented Aug 29, 2017

mathjax-node applies

 var svgdata = svg.outerHTML.replace(/><([^/])/g,">\n<$1")
                               .replace(/(<\/[a-z]*>)(?=<\/)/g,"$1\n")
                               .replace(/(<(?:use|image) [^>]*)(href=)/g,' $1xlink:$2');

but we do not.

@pkra pkra added the bug label Aug 29, 2017
@pkra pkra closed this as completed in f2240ca Aug 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant