Skip to content

XML command#223

Open
sarantoo wants to merge 1 commit into
guigrpa:masterfrom
sarantoo:master
Open

XML command#223
sarantoo wants to merge 1 commit into
guigrpa:masterfrom
sarantoo:master

Conversation

@sarantoo

Copy link
Copy Markdown

I use literalXml alot with this workaround. It really useful in many circumstances. However, it adds extra 2 paragraphs before and after insertion point which is not ideal. So I came up with this additional XML command, that once inserted, replace existing paragraph the same way other commands did (LINK, IMAGE, HTML).

The literal XML need special treatment if it contains multiple root elements (fragment). I opt to put them under a root element and add them up to the xml node tree if the root presented.

@jjhbw

jjhbw commented Aug 6, 2021

Copy link
Copy Markdown
Collaborator

Sorry for the late reply. I'm usually a bit apprehensive about new functionality in this library, as stability is my primary concern at the moment. This looks nice though. Injecting formatting into reports using XML is still pretty hard, this would make it simpler. Can you perhaps add a few snapshot tests? These tests would also serve to showcase the functionality.

@FelixRelli

Copy link
Copy Markdown

Would be really nice to get this merged.

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.

3 participants