sean0x42 / markdown-extract

Extract sections of a markdown file. Useful for automatically extracting changelogs
https://hub.docker.com/r/sean0x42/markdown-extract
MIT License
31 stars 7 forks source link

Support Setext-style headings #22

Open psibre opened 1 month ago

psibre commented 1 month ago

Markdown supports two kinds of header styles for H1 and H2, viz.

  1. Setext

    Foo
    ===
    
    Bar
    ---
  2. atx

    # Foo
    
    ## Bar

It appears that this project cannot handle Setext, and only supports atx.

Would it be possible to suport Setext as well?

sean0x42 commented 1 month ago

Thanks for the suggestion @psibre. I agree, it would be nice to support this style also.