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

Blank line before header at top of document #882

Closed
njbart opened this issue Jun 19, 2013 · 0 comments
Closed

Blank line before header at top of document #882

njbart opened this issue Jun 19, 2013 · 0 comments

Comments

@njbart
Copy link

njbart commented Jun 19, 2013

Pandoc not only allows but requires a blank line before a header.

However, if the first line of a document is a blank line, followed by a header, the header is not recognized.

Using just the command pandoc test.md,


# Heading

Text text text.

produces

<p># Heading One</p>
<p>Text text text.</p>

After removing the first blank line, the result is, as expected,

<h1 id="heading">Heading</h1>
<p>Text text text.</p>
@jgm jgm closed this as completed in f2c3335 Jun 19, 2013
jgm pushed a commit that referenced this issue Jun 19, 2013
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

1 participant