Handle <p> in Maven Plugin Reference documentation

See gh-43622
This commit is contained in:
Tran Ngoc Nhan
2024-12-28 00:46:36 +07:00
committed by Stéphane Nicoll
parent 12e753c197
commit 334cd36b0a
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -118,6 +118,7 @@ class PluginXmlParser {
.replace("<br>", " ")
.replace("\n", " ")
.replace("&quot;", "\"")
.replace("<p>", " ")
.replaceAll("\\{@code (.*?)}", "`$1`")
.replaceAll("\\{@link (.*?)}", "`$1`")
.replaceAll("\\{@literal (.*?)}", "`$1`")