Skip to content
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

[docs] Incorrect documentation for list behavior #6684

Closed
mrbloch opened this issue Sep 13, 2020 · 1 comment
Closed

[docs] Incorrect documentation for list behavior #6684

mrbloch opened this issue Sep 13, 2020 · 1 comment
Labels

Comments

@mrbloch
Copy link

mrbloch commented Sep 13, 2020

The documentation still has a section on "Compact and loose lists" that suggests a specific edge case behavior for lists.
This behavior was changed in pandoc 2.7 and reported in #5285.

The documents merely needs to be fixed to reflect this.

Example: source md file

- Item 1


- Item 2
  - Subitem 1
  - Subitem 2

Output of pandoc 2.3.1

pandoc test.md -t json
{"blocks":[{"t":"Header","c":[1,["test",[],[]],[{"t":"Str","c":"Test"}]]},{"t":"BulletList","c":[[{"t":"Para","c":[{"t":"Str","c":"Item"},{"t":"Space"},{"t":"Str","c":"1"}]}],[{"t":"Plain","c":[{"t":"Str","c":"Item"},{"t":"Space"},{"t":"Str","c":"2"}]},{"t":"BulletList","c":[[{"t":"Plain","c":[{"t":"Str","c":"Subitem"},{"t":"Space"},{"t":"Str","c":"1"}]}],[{"t":"Plain","c":[{"t":"Str","c":"Subitem"},{"t":"Space"},{"t":"Str","c":"2"}]}]]}]]}],"pandoc-api-version":[1,17,5,1],"meta":{}}

Output of pandoc 2.10.1

pandoc test.md -t json
{"blocks":[{"t":"Header","c":[1,["test",[],[]],[{"t":"Str","c":"Test"}]]},{"t":"BulletList","c":[[{"t":"Para","c":[{"t":"Str","c":"Item"},{"t":"Space"},{"t":"Str","c":"1"}]}],[{"t":"Para","c":[{"t":"Str","c":"Item"},{"t":"Space"},{"t":"Str","c":"2"}]},{"t":"BulletList","c":[[{"t":"Plain","c":[{"t":"Str","c":"Subitem"},{"t":"Space"},{"t":"Str","c":"1"}]}],[{"t":"Plain","c":[{"t":"Str","c":"Subitem"},{"t":"Space"},{"t":"Str","c":"2"}]}]]}]]}],"pandoc-api-version":[1,21],"meta":{}}
@jgm jgm closed this as completed in 62948f3 Sep 13, 2020
@jgm
Copy link
Owner

jgm commented Sep 13, 2020

Yes, this is ancient, going back to the days when I felt I needed to document discrepancies from Markdown.pl's test suite. I just deleted the section.

@tarleb tarleb added the docs label Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants