-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Source to source formatting issue #520
Comments
Ahh, thanks for clearing that up! My use case is replacing the content of specific nodes in a parsed document then serializing it back to disk. I suppose an alternative is to use Ast.sourcepos to replace content in the unparsed source. |
I understand! I use it for the same function in a few places, but for my part just accept there'll be some "needlessly" escaped things. Sourcepos is a viable option, but please be aware there are some bugs, especially with inline elements; see the I'm having some ideas brewing for a (kind of) quick and (kind of) easy way to reduce the backslashes without running into the above issues; I'll post back here in a day or two if I get anywhere with it! |
I've tried putting together an option for this at #523 — if you're still interested, could you give that branch a try and let me know if it works OK? |
I'm experiencing a weird escaping issue and a underscore to dash conversion when parsing then formatting a document:
Before:
After:
Is there an option that would disable the addition of these backslashes?
This is happening on version
0.33
.The text was updated successfully, but these errors were encountered: