fix regression with rendering Markdown headings default tip

Sun, 24 May 2026 14:29:27 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 24 May 2026 14:29:27 +0200
changeset 424
0343792a6175
parent 423
2a0cc9c18e2b

fix regression with rendering Markdown headings

fixes #854 which was a regression of issue #808

build.gradle.kts file | annotate | diff | comparison | revisions
src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
--- a/build.gradle.kts	Wed May 13 23:18:25 2026 +0200
+++ b/build.gradle.kts	Sun May 24 14:29:27 2026 +0200
@@ -5,7 +5,7 @@
     war
 }
 group = "de.uapcore"
-version = "1.6.1"
+version = "1.6.2"
 
 repositories {
     mavenCentral()
--- a/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt	Wed May 13 23:18:25 2026 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt	Sun May 24 14:29:27 2026 +0200
@@ -321,7 +321,7 @@
     }
 
     val createIssueLinks = { text: String ->
-        text.replace("##", "&#35;")
+        text.replace(Regex("##([0-9])"), {match -> "&#35;"+match.groupValues[1]})
             .replace(Regex("""(?:^|\s)#([0-9]+)\b"""), { match ->
                 val issueId = match.groupValues[1]
                 match.value.replace("#${issueId}", "[#${issueId}](./issues/${issueId}?in_project=true)")
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Wed May 13 23:18:25 2026 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sun May 24 14:29:27 2026 +0200
@@ -24,6 +24,12 @@
   --%>
 <%@ page contentType="text/html;charset=UTF-8" %>
 
+<h3>Version 1.6.2 (Vorschau)</h3>
+
+<ul>
+    <li>Regression bei der Darstellung von Markdown-Überschriften behoben.</li>
+</ul>
+
 <h3>Version 1.6.1</h3>
 
 <ul>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Wed May 13 23:18:25 2026 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sun May 24 14:29:27 2026 +0200
@@ -24,6 +24,12 @@
   --%>
 <%@ page contentType="text/html;charset=UTF-8" %>
 
+<h3>Version 1.6.2 (preview)</h3>
+
+<ul>
+    <li>Fix regression with rendering Markdown headings.</li>
+</ul>
+
 <h3>Version 1.6.1</h3>
 
 <ul>

mercurial