feat(markdown-docx): add codeblock transformer - #397#430
feat(markdown-docx): add codeblock transformer - #397#430algomaster99 merged 2 commits intoalgoo-ooxmlfrom
Conversation
Add transformation logic: OOXML <-> CiceroMark Add rules Add test Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
algomaster99
left a comment
There was a problem hiding this comment.
Tried to run your code and found that it doesn't parse the literal \\n. Here is a failing test case:
{
"$class": "org.accordproject.commonmark.Document",
"xmlns": "http://commonmark.org/xml/1.0",
"nodes": [
{
"$class": "org.accordproject.templatemark.ContractDefinition",
"name": "top",
"nodes": [
{
"$class": "org.accordproject.commonmark.CodeBlock",
"text": "cout<<\"\\n\";\n"
}
]
}
]
}
I don't think this would be necessary as the transformer will be used by lawyers primarily and won't generally use |
|
@dselman Could you let us know if contracts have escape sequences, like |
In the Commonmark Dingus you can play with code blocks and see how they are rendered as HTML: Note that neither I think we can ignore |
| } | ||
|
|
||
| /** | ||
| * Checks if the node is a thematic break or not |
There was a problem hiding this comment.
Typo? This doesn't seem to be related to a thematic break?
dselman
left a comment
There was a problem hiding this comment.
Once the typo in the JSDoc is fixed I will merge.
Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
|
@dselman |
Signed-off-by: k-kumar-01 kushalkumargupta4@gmail.com
Improves transformer by allowing
codeblocktransformation fromOOXMLtoCiceroMarkand vice-versa.Changes
Screenshots or Video
Author Checklist
--signoffoption of git commit.masterfromfork:branchname