notedown icon indicating copy to clipboard operation
notedown copied to clipboard

Markdown header is incorrectly broken into multiple lines (and displayed strangely)

Open lebigot opened this issue 7 years ago • 2 comments

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 avatar Aug 28 '18 09:08 lebigot

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>

aymaliev avatar Jan 16 '19 09:01 aymaliev

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

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

ObserverOfTime avatar Jan 15 '20 14:01 ObserverOfTime