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 header is incorrectly broken into multiple lines (and displayed strangely) #83

Open
lebigot opened this issue Aug 28, 2018 · 2 comments

Comments

@lebigot
Copy link

lebigot commented Aug 28, 2018

I have this .ipymd notebook with a simple one-line, long header:

# This is an example of a long header, with many, many words. This really is an example of a long header, with many, many words.

notedown incorrectly produces the following Markdown:

# # This is an example of a long header, with many, many words. This really
is an example of a long header, with many, many words.

I see two problems:

  • Big problem: there should be not line break (after "This really").
  • The (say HTML) rendered output should not show "# This is an example…" but "This is an example…", like in the notebook, right?

I could not find where in the code the header is broken.

More generally, the Markdown from Markdown cells should probably be left untouched too, no?

@lebigot lebigot changed the title Markdown header is incorrectly broken into multiple lines Markdown header is incorrectly broken into multiple lines (and displayed strangely) Aug 28, 2018
@aymaliev
Copy link

Hello,

This happens with every long line, not just headers.
I am also looking for a solution to this issue.

Meanwhile, @lebigot , you can use html syntax as a workaround. <h3> this very long title will not be incorrectly broken into multiple lines, even if it is very very long.</h3>

@ObserverOfTime
Copy link

ObserverOfTime commented Jan 15, 2020

I've also encountered this issue. Are there plans to fix it?

Edit: I found a fork that works. It's also on PyPI.

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