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
Improved Concrete Syntax Trees #59
Comments
This comment has been minimized.
This comment has been minimized.
^-- this is my fault I think |
It would mean a different syntax tree that is hard to manage as it is so verbose.
I’m against adding such information on abstract syntax tree nodes, as I think ASTs by definition should not have such information: they’re supposed to be lossy and easy to handle.
You can detect such information, similar to how |
Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed. See our support docs for how and where to ask questions. Thanks, |
Subject of the feature
I'm in the process of migrating my markdown editor to use
remark
/micromark
instead ofmarkdown-it
. One of my goals is not to change the formatting style of my users' input files, at least if I can help it.At the moment, the
micromark
tokenizers seem not to record information that might help reconstruct the original input Markdown in cases where Markdown has redundancies:_
vs*
for emphasis*
vs-
vs+
for unordered lists*
vs-
vs=
for hrule / thematic breaks, as well as the length of the string used to indicate the breakI'm not terribly interested in preserving superfluous whitespace the user might have, but it would be nice to at least preserve their preferences for emphasis / heading / list syntax. For instance, I personally like to use
*
for regular lists and+
/-
for pro/con lists, and at the moment there's no way to preserve that information.Thanks!
Problem
Expected behavior
Alternatives
The text was updated successfully, but these errors were encountered: