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

html tag and atx-style header #2409

Closed
octoploid opened this issue Sep 22, 2015 · 2 comments
Closed

html tag and atx-style header #2409

octoploid opened this issue Sep 22, 2015 · 2 comments

Comments

@octoploid
Copy link

<a name="main"></a>
# C++ Core Guidelines

is currently converted to (e.g. latex):

\# C++ Core Guidelines

When I add a newline between the html tag and the atx-style header I get the desired result:

<a name="main"></a>

# C++ Core Guidelines

to

\section{C++ Core Guidelines}\label{c-core-guidelines}

Is this intended?

@jgm
Copy link
Owner

jgm commented Sep 22, 2015

Yes, it's intended. From the manual:

Extension: blank_before_header

Standard markdown syntax does not require a blank line
before a header. Pandoc does require this (except, of
course, at the beginning of the document). The reason for
the requirement is that it is all too easy for a # to end up
at the beginning of a line by accident (perhaps through line
wrapping). Consider, for example:

I like several of their flavors of ice cream:
#22, for example, and #5.

You can turn this off: pandoc -f markdown-blank_before_header

John

+++ octoploid [Sep 22 15 10:19 ]:

C++ Core Guidelines

is currently converted to (e.g. latex):

C++ Core Guidelines

When I add a newline between the html tag and the atx-style header I
get the desired result:

C++ Core Guidelines

to
\section{C++ Core Guidelines}\label{c-core-guidelines}

Is this intended?


Reply to this email directly or [1]view it on GitHub.

References

  1. html tag and atx-style header #2409

@octoploid
Copy link
Author

Thanks a lot.

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

2 participants