-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xml back to markdown #264
Comments
I could probably whip up an XSLT stylesheet in half an hour. |
I think that would be fantastic. |
Here's a first attempt: https://gist.github.com/nwellnhof/1594ec597ae06836bc2f974641ec4df7 Note that a MD->XML->MD roundtrip will lose a bit of information. @jgm If you like, I can commit the XSLT stylesheet to the |
Thanks @nwellnhof ! This works quite well. Can you explain why verbatim html is not supported? Also: I see your name appear in libxslt as well so I might as ask here: in my libxslt bindings the message Do you know if there any way in libxslt to distinguish a terminating from non terminating message in the |
Nick Wellnhofer <[email protected]> writes:
@jgm If you like, I can commit the XSLT stylesheet to the `tools` directory.
I think it would be useful to have there, yes!
|
Initial version of an XSLT stylesheet that converts the XML format produced by `cmark -t xml` back to Commonmark. Fixes commonmark#264
@jeroen The stylesheet in the pull request also handles HTML blocks and inlines. libxslt will invoke the error handler for every |
Initial version of an XSLT stylesheet that converts the XML format produced by `cmark -t xml` back to Commonmark. Fixes #264
I was wondering if anyone has worked on a tool to convert the xml AST back to markdown? We would like to structurally edit markdown documents, preferably using xml tools (xpath, etc).
The text was updated successfully, but these errors were encountered: