Skip to content

Commit b19de4e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents bef13ae + ba8c720 commit b19de4e

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

flexmark-jira-converter/src/main/java/com/vladsch/flexmark/jira/converter/internal/JiraConverterNodeRenderer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,11 @@ private void render(Link node, NodeRendererContext context, HtmlWriter html) {
418418
ResolvedLink resolvedLink = context.resolveLink(LinkType.LINK, node.getUrl().unescape(), null);
419419
html.raw("[");
420420
context.renderChildren(node);
421-
html.raw("|").raw(resolvedLink.getUrl()).raw("]");
421+
html.raw("|").raw(resolvedLink.getUrl());
422+
if (node.getTitle() != null && !node.getTitle().isEmpty()) {
423+
html.raw("|").raw(node.getTitle());
424+
}
425+
html.raw("]");
422426
}
423427
}
424428

flexmark-jira-converter/src/test/resources/jira_converter_ast_spec.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ Document[0, 122]
144144
````````````````````````````````
145145

146146

147+
```````````````````````````````` example Text formatting: 4
148+
[inline link with title](http://google.com "Google")
149+
.
150+
[inline link with title|http://google.com|Google]
151+
152+
.
153+
Document[0, 53]
154+
Paragraph[0, 53]
155+
Link[0, 52] textOpen:[0, 1, "["] text:[1, 23, "inline link with title"] textClose:[23, 24, "]"] linkOpen:[24, 25, "("] url:[25, 42, "http://google.com"] pageRef:[25, 42, "http://google.com"] titleOpen:[43, 44, "\""] title:[44, 50, "Google"] titleClose:[50, 51, "\""] linkClose:[51, 52, ")"]
156+
Text[1, 23] chars:[1, 23, "inlin … title"]
157+
````````````````````````````````
158+
159+
147160
### Block quotes
148161

149162
Single line block quote

0 commit comments

Comments
 (0)