-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codeblock) Clauses are now recognized through code block's info f…
…ield, bug in cicero to commonmark Signed-off-by: Jerome Simeon <[email protected]>
- Loading branch information
1 parent
8b9af9a
commit 14d20c3
Showing
8 changed files
with
144 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,22 +49,22 @@ Object { | |
"info": "<clause src=\\"ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f\\" clauseid=\\"479adbb4-dc55-4d1a-ab12-b6c5e16900c0\\">", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "id = \\"shipper\\" value = \\"%22Party%20A%22\\" ", | ||
"attributeString": "src = \\"ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f\\" clauseid = \\"479adbb4-dc55-4d1a-ab12-b6c5e16900c0\\" ", | ||
"attributes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "id", | ||
"value": "shipper", | ||
"name": "src", | ||
"value": "ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "value", | ||
"value": "%22Party%20A%22", | ||
"name": "clauseid", | ||
"value": "479adbb4-dc55-4d1a-ab12-b6c5e16900c0", | ||
}, | ||
], | ||
"closed": false, | ||
"content": "", | ||
"tagName": "variable", | ||
"tagName": "clause", | ||
}, | ||
"text": "Acceptance of Delivery. <variable id=\\"shipper\\" value=\\"%22Party%20A%22\\"/> will be deemed to have completed its delivery obligations if in <variable id=\\"receiver\\" value=\\"%22Party%20B%22\\"/>'s opinion, the <variable id=\\"deliverable\\" value=\\"%22Widgets%22\\"/> satisfies the Acceptance Criteria, and <variable id=\\"receiver\\" value=\\"%22Party%20B%22\\"/> notifies <variable id=\\"shipper\\" value=\\"%22Party%20A%22\\"/> in writing that it is accepting the <variable id=\\"deliverable\\" value=\\"%22Widgets%22\\"/>. | ||
|
||
|
@@ -239,8 +239,39 @@ Object { | |
}, | ||
], | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Paragraph", | ||
"nodes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "This is a fixed interest loan to the amount of 100000.0", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "at the yearly interest rate of 2.5%", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "with a loan term of 15,", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "and monthly payments of 667.0", | ||
}, | ||
], | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"info": "<clause src=\\"foo\\" clauseid=\\"bar\\"/>", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "src = \\"foo\\" clauseid = \\"bar\\" ", | ||
|
@@ -256,21 +287,14 @@ Object { | |
"value": "bar", | ||
}, | ||
], | ||
"closed": false, | ||
"content": " | ||
this is | ||
multiline | ||
|
||
content | ||
", | ||
"closed": true, | ||
"content": "", | ||
"tagName": "clause", | ||
}, | ||
"text": "<clause src=\\"foo\\" clauseid=\\"bar\\"> | ||
this is | ||
multiline | ||
"text": "this is | ||
multiline <variable id=\\"rate\\" value=\\"2.5\\"/> | ||
|
||
content | ||
</clause> | ||
", | ||
}, | ||
], | ||
|
@@ -301,6 +325,20 @@ Object { | |
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"info": "<video src=\\"https://www.youtube.com/embed/dQw4w9WgXcQ\\"/>", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "src = \\"https://www.youtube.com/embed/dQw4w9WgXcQ\\" ", | ||
"attributes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "src", | ||
"value": "https://www.youtube.com/embed/dQw4w9WgXcQ", | ||
}, | ||
], | ||
"closed": true, | ||
"content": "", | ||
"tagName": "video", | ||
}, | ||
"text": " this is a multiline | ||
code | ||
|
||
|
@@ -10231,14 +10269,6 @@ Object { | |
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "", | ||
"attributes": Array [], | ||
"closed": false, | ||
"content": "", | ||
"tagName": "div", | ||
}, | ||
"text": "<div> | ||
", | ||
}, | ||
|
@@ -10500,16 +10530,6 @@ Object { | |
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "", | ||
"attributes": Array [], | ||
"closed": false, | ||
"content": " | ||
Hi | ||
", | ||
"tagName": "td", | ||
}, | ||
"text": "<td> | ||
Hi | ||
</td> | ||
|
@@ -11702,14 +11722,6 @@ Object { | |
"nodes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "", | ||
"attributes": Array [], | ||
"closed": false, | ||
"content": "", | ||
"tagName": "a", | ||
}, | ||
"text": "<a/> | ||
*hi* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,22 +49,22 @@ Object { | |
"info": "<clause src=\\"ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f\\" clauseid=\\"479adbb4-dc55-4d1a-ab12-b6c5e16900c0\\">", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "id = \\"shipper\\" value = \\"%22Party%20A%22\\" ", | ||
"attributeString": "src = \\"ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f\\" clauseid = \\"479adbb4-dc55-4d1a-ab12-b6c5e16900c0\\" ", | ||
"attributes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "id", | ||
"value": "shipper", | ||
"name": "src", | ||
"value": "ap://[email protected]#721d1aa0999a5d278653e211ae2a64b75fdd8ca6fa1f34255533c942404c5c1f", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "value", | ||
"value": "%22Party%20A%22", | ||
"name": "clauseid", | ||
"value": "479adbb4-dc55-4d1a-ab12-b6c5e16900c0", | ||
}, | ||
], | ||
"closed": false, | ||
"content": "", | ||
"tagName": "variable", | ||
"tagName": "clause", | ||
}, | ||
"text": "Acceptance of Delivery. <variable id=\\"shipper\\" value=\\"%22Party%20A%22\\"/> will be deemed to have completed its delivery obligations if in <variable id=\\"receiver\\" value=\\"%22Party%20B%22\\"/>'s opinion, the <variable id=\\"deliverable\\" value=\\"%22Widgets%22\\"/> satisfies the Acceptance Criteria, and <variable id=\\"receiver\\" value=\\"%22Party%20B%22\\"/> notifies <variable id=\\"shipper\\" value=\\"%22Party%20A%22\\"/> in writing that it is accepting the <variable id=\\"deliverable\\" value=\\"%22Widgets%22\\"/>. | ||
|
||
|
@@ -239,8 +239,39 @@ Object { | |
}, | ||
], | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Paragraph", | ||
"nodes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "This is a fixed interest loan to the amount of 100000.0", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "at the yearly interest rate of 2.5%", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "with a loan term of 15,", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Softbreak", | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.Text", | ||
"text": "and monthly payments of 667.0", | ||
}, | ||
], | ||
}, | ||
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"info": "<clause src=\\"foo\\" clauseid=\\"bar\\"/>", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "src = \\"foo\\" clauseid = \\"bar\\" ", | ||
|
@@ -256,21 +287,14 @@ Object { | |
"value": "bar", | ||
}, | ||
], | ||
"closed": false, | ||
"content": " | ||
this is | ||
multiline | ||
|
||
content | ||
", | ||
"closed": true, | ||
"content": "", | ||
"tagName": "clause", | ||
}, | ||
"text": "<clause src=\\"foo\\" clauseid=\\"bar\\"> | ||
this is | ||
multiline | ||
"text": "this is | ||
multiline <variable id=\\"rate\\" value=\\"2.5\\"/> | ||
|
||
content | ||
</clause> | ||
", | ||
}, | ||
], | ||
|
@@ -301,6 +325,20 @@ Object { | |
Object { | ||
"$class": "org.accordproject.commonmark.CodeBlock", | ||
"info": "<video src=\\"https://www.youtube.com/embed/dQw4w9WgXcQ\\"/>", | ||
"tag": Object { | ||
"$class": "org.accordproject.commonmark.TagInfo", | ||
"attributeString": "src = \\"https://www.youtube.com/embed/dQw4w9WgXcQ\\" ", | ||
"attributes": Array [ | ||
Object { | ||
"$class": "org.accordproject.commonmark.Attribute", | ||
"name": "src", | ||
"value": "https://www.youtube.com/embed/dQw4w9WgXcQ", | ||
}, | ||
], | ||
"closed": true, | ||
"content": "", | ||
"tagName": "video", | ||
}, | ||
"text": " this is a multiline | ||
code | ||
|
||
|
Oops, something went wrong.