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

Bullet point format not preserved #9663

Closed
avidseeker opened this issue Apr 16, 2024 · 1 comment
Closed

Bullet point format not preserved #9663

avidseeker opened this issue Apr 16, 2024 · 1 comment

Comments

@avidseeker
Copy link

Explain the problem.
input.md

Here is a list:
* [One](https://avidseeker.github.io)
* [Two](https://github.com/jgm/pandoc)
$ pandoc -f commonmark -t commonmark --wrap=preserve --reference-links -i input.md
Here is a list:

- [One]
- [Two]

  [One]: https://avidseeker.github.io
  [Two]: https://github.com/jgm/pandoc

Result

  • Bullet point format is changed
  • Spacing between list header "Here is a list:" and the list is changed.

Bonus

Bonus question: as you can see, I'm trying to use pandoc to convert inline links to reference-style links. Is there a better way to do it?

Bonus feature-request: add an option --reference-links=id so that links converted have a numeric id (e.g: [one][1]). This makes it easier to change the text of the link without having to change the reference list.

Pandoc version?
pandoc 3.1.12.2

@avidseeker avidseeker added the bug label Apr 16, 2024
@jgm
Copy link
Owner

jgm commented Apr 16, 2024

You should not expect the markdown writer to preserve aspects of your document that don't relate to its abstract structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants