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 convert adds empty row as first row #376

Closed
chrisalbon opened this issue Aug 27, 2016 · 1 comment · Fixed by #1076
Closed

Markdown convert adds empty row as first row #376

chrisalbon opened this issue Aug 27, 2016 · 1 comment · Fixed by #1076
Labels
format:Markdown pertains to exporting to the Markdown format

Comments

@chrisalbon
Copy link

When converting an notebook to markdown, nbconvert adds a blank row as the first row of the file. Is there a reason for this?

To be honest my reasons for not wanting this first row are totally selfish. I convert many notebooks to markdown to use in Pelican and Pelican's md->html convert requires the first line be the title of the blog post (e.g. Title: Beautiful Soup Basic HTML Scraping) which is currently annoying via nbconvert because I have to manually delete the first row after nbconverting, before running pelican.

@takluyver
Copy link
Member

I don't think it's deliberate, but probably an incautiously written template. Templating systems are most often used for HTML, where whitespace mostly doesn't matter, so it can be easy to overlook.

@t-makaro t-makaro added the format:Markdown pertains to exporting to the Markdown format label Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format:Markdown pertains to exporting to the Markdown format
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants