canonical / canonicalwebteam.discourse

GNU Lesser General Public License v3.0
11 stars 16 forks source link

Strip heading titles #176

Closed jpmartinspt closed 1 year ago

jpmartinspt commented 1 year ago

Done

Strip white spaces from heading title. In newer versions of discourse the headings titles in cooked html are prefixed with new lines and it breaks the section parsing.

QA

In a few different projects that use discourse(ubuntu.com, maas.io, charmhub.io):

# canonicalwebteam.discourse==5.4.4
canonicalwebteam.discourse @ git+https://github.com/canonical/canonicalwebteam.discourse@heading-title-strip