We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When parsing a markdown with cicero extension, the parser does not handle a clause contains another clause properly.
To Reproduce
In the following test, notice the end of the outer clause and the trailing ending clause as a text node.
bash-3.2$ cat test/data/nestedclause2.tem.md {{#clause payment}} Payment. As consideration in full for the rights granted herein, Licensee shall pay Licensor a one-time fee in the amount of "forty two" (42) upon execution of this Agreement, payable as follows: "wire transfer". {{#clause foo}} This clause is nested. {{/clause}} And contains more text. {{/clause}} bash-3.2$ markus transform --from markdown_cicero --to ciceromark --input test/data/nestedclause2.tem.md <-to ciceromark --input test/data/nestedclause2.tem.md 7:27:53 PM - info: { "$class": "org.accordproject.commonmark.Document", "xmlns": "http://commonmark.org/xml/1.0", "nodes": [ { "$class": "org.accordproject.ciceromark.Clause", "name": "payment", "nodes": [ { "$class": "org.accordproject.commonmark.Paragraph", "nodes": [ { "$class": "org.accordproject.commonmark.Text", "text": "Payment. As consideration in full for the rights granted herein, Licensee shall pay Licensor a one-time fee in the amount of "forty two" (42) upon execution of this Agreement, payable as follows: "wire transfer"." } ] }, { "$class": "org.accordproject.ciceromark.Clause", "name": "foo", "nodes": [ { "$class": "org.accordproject.commonmark.Paragraph", "nodes": [ { "$class": "org.accordproject.commonmark.Text", "text": "This clause is nested." } ] } ] } ] }, { "$class": "org.accordproject.commonmark.Paragraph", "nodes": [ { "$class": "org.accordproject.commonmark.Text", "text": "And contains more text." }, { "$class": "org.accordproject.commonmark.Softbreak" }, { "$class": "org.accordproject.commonmark.Text", "text": "{{/clause}}" } ] } ] }
The text was updated successfully, but these errors were encountered:
fix(cicero) Nested clause issue in markdown_cicero accordproject#323
436aad4
Signed-off-by: Jerome Simeon <jeromesimeon@me.com>
fix(cicero) Nested clause issue in markdown_cicero #323
9d2068c
Fixed in #324
Sorry, something went wrong.
jeromesimeon
No branches or pull requests
Describe the bug
When parsing a markdown with cicero extension, the parser does not handle a clause contains another clause properly.
To Reproduce
In the following test, notice the end of the outer clause and the trailing ending clause as a text node.
Related
The text was updated successfully, but these errors were encountered: