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

Markdown reader: Semantics of space between # and header title changed after v1.19.2.4? #4801

Closed
krlmlr opened this issue Jul 30, 2018 · 5 comments

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Jul 30, 2018

I have read the release notes (searched for instances of "Markdown reader") but haven't found any hint. Is this intended?

$ echo "#header" | pandoc
<h1 id="header">header</h1>
$ echo "#header" | /usr/lib/rstudio/bin/pandoc/pandoc
<p>#header</p>

$ pandoc -v | head -n 1
pandoc 1.19.2.4
$ /usr/lib/rstudio/bin/pandoc/pandoc -v | head -n 1
pandoc 2.2.1
@agusmba
Copy link
Contributor

agusmba commented Jul 30, 2018

Probably.
Space after # is standard in commonmark, and in pandoc's markdown (if I'm reading the manual correctly).

If you want the old behavior try with

$ echo "#header" | pandoc -f markdown-space_in_atx_header
<h1 id="header">header</h1>

@krlmlr
Copy link
Contributor Author

krlmlr commented Jul 30, 2018

Thanks! I missed that, sorry for the noise.

@krlmlr krlmlr closed this as completed Jul 30, 2018
@agusmba
Copy link
Contributor

agusmba commented Jul 30, 2018

For completeness sake, this was tacked in #3512 and it was a new feature of Pandoc 2.0

@krlmlr
Copy link
Contributor Author

krlmlr commented Jul 30, 2018

Thanks. How do I submit a PR to the releases.html page? Apart from typos, I think this is really a behavioral change (too), because the default has changed.

@jgm
Copy link
Owner

jgm commented Jul 30, 2018 via email

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

No branches or pull requests

3 participants