Skip to content

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented Apr 21, 2023

Properly parse Markdown and report the first H1 tag rather than naively looking for # Stuff at the start of the doc.

This satisfies feature requests such as supporting setext-style headers and fixes attr-list suffixes that failed to be ignored.

oprypin and others added 3 commits April 21, 2023 21:58
Properly parse Markdown and report the first H1 tag rather than naively looking for `# Stuff` at the start of the doc.

This satisfies feature requests such as supporting setext-style headers and fixes attr-list suffixes that failed to be ignored.
Co-authored-by: Hendrik Polczynski <hendrikpolczyn@gmail.com>
Co-authored-by: Darrick Herwehe <darrick@exitcodeone.com>
@oprypin oprypin marked this pull request as ready for review April 29, 2023 10:04
@mschoettle
Copy link

I believe that I found a small bug in the logic of extracting the title. The loop always breaks after looking at the first element instead of after h1 was found. I created a fix in #3956.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants