ladybird/Libraries/LibMarkdown
Linus Groh 9735879318 LibMarkdown: Don't parse lines starting with a space as heading
This fixes a bug where lines starting with a space would get parsed as
"level 0" headings - it would not find a "#" and therefore never
increase the level counter (starting at zero), which then would cause
the check for "space after #" pass (again, there is no "#").

Eventually we would get funny results like this:

    <h0>[n-1 spaces]oops!</h0>

Also ASSERT(level > 0) in the Heading constructor.
2020-10-26 19:13:19 +01:00
..
Block.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
CMakeLists.txt LibMarkdown: Add support for Tables 2020-09-27 21:14:18 +02:00
CodeBlock.cpp LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
CodeBlock.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Document.cpp LibMarkdown: Flush the pending paragraphs when encountering empty lines 2020-10-26 09:36:12 +01:00
Document.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Heading.cpp LibMarkdown: Don't parse lines starting with a space as heading 2020-10-26 19:13:19 +01:00
Heading.h LibMarkdown: Don't parse lines starting with a space as heading 2020-10-26 19:13:19 +01:00
List.cpp LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
List.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Paragraph.cpp LibMarkdown: Parse paragraphs line-wise 2020-09-27 21:14:18 +02:00
Paragraph.h LibMarkdown: Parse paragraphs line-wise 2020-09-27 21:14:18 +02:00
Table.cpp LibMarkdown: Add support for Tables 2020-09-27 21:14:18 +02:00
Table.h LibMarkdown: Add support for Tables 2020-09-27 21:14:18 +02:00
Text.cpp LibMarkdown: Add a Text(String) constructor 2020-09-27 21:14:18 +02:00
Text.h LibMarkdown: Add a Text(String) constructor 2020-09-27 21:14:18 +02:00