-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
Extra leading spaces when wrapping list to fixed width #348
Comments
Isn't this just a matter of style? The lists are semantically the same whether or not there is a two-space indent. Saying it's a regression implies that it's buggy behavior, but it's not buggy, just different. Pandoc's legacy markdown_github won't preserve the spacing in the source either:
|
Thanks @jgm for providing some balanced view. I might have been too fast calling that a bug. You're right, the semantics are preserved by I'm less advocating for preserving the indention than having it constrained by the user. The later being performed via the Now is that fair to requalify this issue as a feature request? In which case it can retitle it "Allow configurable list's leading spaces" or "Add a --tab-stop parameter". Then you can decide as a maintainer to consider this feature for future addition or not. I'm also ready to move that issue to |
Here is a simple Markdown list:
Re-wrapping this to a maximum length of 80 characters introduces 2 spaces before each lines:
Here I expect
cmark
to get rid of these leading spaces and render as such:Why? So we can fix a regression in
pandoc
. See how the previous flavor (markdown_github
) behaved in that situation compared to the new one (gfm
, based oncmark
):I guess this behaviour should be somewhat configurable in
cmark
aspandoc
does with the--tab-stop
parameter:For reference, here the version of
cmark
I'm using, installed withbrew
on macOS Catalina:The text was updated successfully, but these errors were encountered: