Skip to content

XRENDERING-660: Get rid of the dependency on the xdom+xml syntax#230

Merged
michitux merged 3 commits into
xwiki:masterfrom
michitux:XRENDERING-660
Nov 4, 2022
Merged

XRENDERING-660: Get rid of the dependency on the xdom+xml syntax#230
michitux merged 3 commits into
xwiki:masterfrom
michitux:XRENDERING-660

Conversation

@michitux

Copy link
Copy Markdown
Contributor
  • Pass the label via an XDOM instance instead of rendering/parsing to xdom+xml syntax.
  • Move the reference type detection into the XWikiReferenceTagHandler to simplify XHTMLXWikiGeneratorListener.

I'm not super happy with the new workaround but I think it's better than the old one, avoids the dependency on another syntax and shouldn't cause any breakages as we're (mostly) still doing the same. The better design would be to introduce begin/end methods for references but then we would need (probably) major changes in WikiModel to properly support everything that currently works like having independent styling in link labels.

* Pass the label via an XDOM instance instead of rendering/parsing to
  xdom+xml syntax.
* Move the reference type detection into the XWikiReferenceTagHandler to
  simplify XHTMLXWikiGeneratorListener.
@michitux michitux requested a review from tmortagne October 31, 2022 16:33
* Reduce number of dependencies to other classes in XWikiCommentHandler
* Add since-comments to new methods in XWikiWikiReference
@michitux michitux merged commit a4ca31f into xwiki:master Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants