Hi all!
I would fix this issues :
http://jira.xwiki.org/browse/XRENDERING-362
<http://jira.xwiki.org/browse/XRENDERING-362>
http://jira.xwiki.org/browse/XRENDERING-354
<http://jira.xwiki.org/browse/XRENDERING-354>.
For this, I'll have to play with this classes :
- AbstractLinkAndImagePegdownVisitor :
http://grepcode.com/file/repo1.maven.org/maven2/org.xwiki.rendering/xwiki-r…
<http://grepcode.com/file/repo1.maven.org/maven2/org.xwiki.rendering/xwiki-rendering-syntax-markdown10/5.4.3/org/xwiki/rendering/internal/parser/markdown/AbstractLinkAndImagePegdownVisitor.java#AbstractLinkAndImagePegdownVisitor.0linkResourceReferenceParser>
- AbstractPluginsPegdownVisitor :
https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-syntax…
<https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-syntaxes/xwiki-rendering-syntax-markdown11/src/main/java/org/xwiki/rendering/internal/parser/markdown11/AbstractPluginsPegdownVisitor.java>
- XDOMGeneratorListener :
http://grepcode.com/file/repo1.maven.org/maven2/org.xwiki.rendering/xwiki-r…
<http://grepcode.com/file/repo1.maven.org/maven2/org.xwiki.rendering/xwiki-rendering-api/6.2/org/xwiki/rendering/internal/parser/XDOMGeneratorListener.java#XDOMGeneratorListener.beginLink(org.xwiki.rendering.listener.reference.ResourceReference,boolean,java.util.Map)>
For resume, Pegdown, the parser engine accept the plugins in order to override the
behaviour.
XWiki has already added three plugins. For that, They created
AbstractPluginsPegdownVisitor which inherits AbstractLinkAndImagePegdownVisitor.
For issue concerning the WikiLinks, I need override “visit(WikiLinkNode wikiLinkNode)”
(into AbstractPluginsPegdownVisitor). In this method, I have to call the instance of
XDOMGeneratorListener in order to create a XDOM link.
And this is where I have a problem.
I understand I have to call beginLinks and endLink but I don’t understand how to sent the
link and the title? It’s a bit hard to understand XDOMGeneratorListener.
I hope you can help me.
Thanks,
Marc