r3bl-org/r3bl-open-core

[tui] Markdown parser doesn't render headings correctly with > 6 `#`

Closed this issue · 1 comments

Platform Arch Linux (w/ KDE , i3wm)
Terminal software Konsole

Describe the problem you are observing.

Basically in markdown we have six heading styles with #. But, If you try to put in more hashes than 6, Then it has a weird behaviour. It cannot detect the space afterwards and does confuses the editor.

Steps to reproduce

  1. Open the file in tui.
  2. Try to put >6 (Eg: 7) number of hashes and press space and write something.

Screenshots/Screencaptures

2023-11-06.16-24-46.online-video-cutter.com.mp4

Very helpful if the display doesn't seem to work

@Harshil-Jani Good job finding this issue. I had randomly run into it before but wasn't able to repro it.