1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-07 02:40:52 +00:00

Allow underscore to be used as an escape character for pattern -->

The issue is described in more detail at https://forum.plantuml.net/17507/dotted-arrow-also-the-close-comment-blocks-html-xml-markdown --
Similar to the issue in https://forum.plantuml.net/11806/dotted-arrow-also-the-close-comment-blocks-html-xml-markdown map uses the syntax with --> for longer arrows but they pose a problem when embedding in HTML.

For example, the following cannot be embedded in HTML.

map example {

    A*--> B

}

The linked thread above suggests the use of _ before the > but that doesn't work for maps.
This commit is contained in:
rohitsud 2023-02-28 11:38:27 -08:00 committed by GitHub
parent 52664342f6
commit ece128c3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ public class BodierMap implements Bodier {
}
public static String getLinkedEntry(String s) {
final Pattern p = Pattern.compile("(\\*-+\\>)");
final Pattern p = Pattern.compile("(\\*-+_*\\>)");
final Matcher m = p.matcher(s);
if (m.find()) {
return m.group(1);