Git.SemVersioning.Gradle icon indicating copy to clipboard operation
Git.SemVersioning.Gradle copied to clipboard

Having a commit message title with a liternal HTML tag name breaks the release notes layout

Open sschuberth opened this issue 1 year ago • 4 comments

Having a commit message like this

`feat(reporter): Use <pre> block for issue messages`

results in release notes being rendered like this

image

because the <pre> is taken literally and being interpreted as a render action.

sschuberth avatar Jan 18 '24 10:01 sschuberth

I modified the change log formater to add a \ before every <. I hope this solves the issue with html in the texts

jmongard avatar Feb 09 '24 16:02 jmongard

Confirmed to be fixed with release 0.12.0.

sschuberth avatar Feb 09 '24 16:02 sschuberth

I'm reopening this as the implemented escaping is now too eager: Its also escapes < contained in backticks, see e.g. this release:

image

with the original commit title being rendered as

image

and the literal patch including backticks:

image

sschuberth avatar Feb 15 '24 10:02 sschuberth

It should now support `<html>` and ``<html>`` but not tripple back ticks. I guess it is possible to do the code smarter to handle it but maybe it is not worth the effort.

jmongard avatar Feb 15 '24 12:02 jmongard

The plugin should now be able to support any number of `back ticks`

jmongard avatar Jun 17 '24 15:06 jmongard