feat(TemplateList): identify variables and add content controls - I121
Signed-off-by: Shrey Sachdeva [email protected]
Issue #121
Identify different nodes in CiceroMark DOM to add styling and content controls on the Variable and ComputedVariable nodes.
Changes
Headingnode now enters a newParagraph, a line break and styling is adjusted appropriately.Paragraphnode is further identified as 4 types: --Text: Plain text is inserted --Softbreak: Adds a line break --Variable&ComputerVariable: Content controls are added with styling
Flags
- N/A
Please review @DianaLease @dselman. Thanks!
We don't seem to process any of the child nodes of a paragraph (or other nodes that could have children). This may lead to data loss for complex templates (e.g. a para containing a list containing list items which are paras).
Yes, I added the support for List, ListVariable and Item nodes. I also took the volume discount to list template and it seems to render well in the document. Are there any other complex examples I should try this with?
@DianaLease not sure what happened with the rebase here. Can you please suggest how I can fix the DCO check?
@DianaLease not sure what happened with the rebase here. Can you please suggest how I can fix the DCO check?
Can you amend your last two commits to add the signoff and then force push back to the branch? That should fix it.
Can you amend your last two commits to add the signoff and then force push back to the branch? That should fix it.
Thanks! It's fixed, please review. @dselman @DianaLease