Limit changelog size

This commit is contained in:
M66B
2024-05-15 19:14:42 +02:00
parent c9f22fbf97
commit 4d27446860
4 changed files with 12 additions and 0 deletions

View File

@@ -88,6 +88,12 @@ public class FragmentDialogMarkdown extends FragmentDialogBase {
markdown = Helper.readStream(is);
}
if ("CHANGELOG.md".equals(name)) {
int pos = markdown.indexOf("<!-- truncate here -->");
if (pos > 0)
markdown = markdown.substring(0, pos);
}
markdown = markdown
.replace("/FAQ.md#FAQ", "/FAQ.md#faq")
.replace("/FAQ.md#user-content-faq", "/FAQ.md#faq")