-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(markdown-docx): add API to return frequency of variables in CiceroMark (JSON) - #397 #411
feat(markdown-docx): add API to return frequency of variables in CiceroMark (JSON) - #397 #411
Conversation
Return counter for variables in CiceroMark Signed-off-by: k-kumar-01 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See changes.
@@ -51,6 +52,15 @@ class CiceroMarkToOOXMLTransfomer { | |||
return node.$class; | |||
} | |||
|
|||
/** | |||
* Returns the counter holding variable counts for a CiceroMark. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"count" (singular)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CiceroMark (JSON)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@algomaster99
Updated
@@ -138,6 +148,7 @@ class CiceroMarkToOOXMLTransfomer { | |||
this.getNodes(node, counter); | |||
}); | |||
this.globalOOXML = wrapAroundDefaultDocxTags(this.globalOOXML); | |||
this.counter = counter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since counter
is an instance variable now, you don't need to maintain a separate counter
. Use this.counter
wherever required.
Signed-off-by: k-kumar-01 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 🎉
Not sure if you noticed but ooxml = ''
is also not needed in toOOXML
. Maybe you can change it similarly in separate PR.
…roMark (JSON) - #397 (#411) Signed-off-by: k-kumar-01 <[email protected]>
…roMark (JSON) - #397 (#411) Signed-off-by: k-kumar-01 <[email protected]>
Return counter for variables in CiceroMark
Signed-off-by: k-kumar-01 [email protected]
Enhancement to the
CiceroMarkToOOXMLTransformer
by returning the counter for variables in CiceroMark of a template.Changes
counter
to store the counter.getCounter()
that returns the counter.Related Issues
Raised as a part of the above PR.
Author Checklist
--signoff
option of git commit.master
fromfork:branchname