hunyadi / md2conf

Publish Markdown files to Confluence wiki
MIT License
52 stars 27 forks source link

Ensure we show summary even if we have html tags present #49

Closed zendern closed 1 month ago

zendern commented 1 month ago

While testing out the fix for #45 found that summaries did not show for all instances. Realized that we were using some <b> and <i> tags to make them "pretty" in Github. This 100% broke b/c .text on an lxml element will only grab the text inside the immediate element and not the child elements, so need to use itertext() to ensure we grab all of it.

Testing

Added a unit test as well as confirmed that the sections now render with summaries.