Created
July 27, 2018 09:35
-
-
Save mttrbrts/257bc23c22707201075e75e70052a10b to your computer and use it in GitHub Desktop.
Default parsing of markdown contract template by Remark
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
{ | |
"type": "root", | |
"children": [ | |
{ | |
"type": "html", | |
"value": "<code>\n define function area(r : float) : float { return pi * r^2.0 }\n<code>" | |
}, | |
{ | |
"type": "heading", | |
"depth": 1, | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Land Sale Contract" | |
} | |
] | |
}, | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "The first party (henceforth known as the {" | |
}, | |
{ | |
"type": "linkReference", | |
"identifier": "buyer", | |
"referenceType": "shortcut", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Buyer" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": "}) agrees to\npurchase from the second party (henceforth known as {" | |
}, | |
{ | |
"type": "linkReference", | |
"identifier": "seller", | |
"referenceType": "shortcut", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Seller" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": "}) the\nland (henceforth known as the {" | |
}, | |
{ | |
"type": "linkReference", | |
"identifier": "land", | |
"referenceType": "shortcut", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Land" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": "}) located at the following\naddress:" | |
} | |
] | |
}, | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "{" | |
}, | |
{ | |
"type": "linkReference", | |
"identifier": "address:org.accordproject.address", | |
"referenceType": "shortcut", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "address:org.accordproject.address" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": "}, in the city of\n{" | |
}, | |
{ | |
"type": "linkReference", | |
"identifier": "city", | |
"referenceType": "shortcut", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "city" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": "}. " | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- This has an implicit String type -->" | |
} | |
] | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- we can reference past definitions inline pretty easily -->" | |
}, | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "The {{ contract.address }} shall pay the {{ contract.city }} for the land." | |
} | |
] | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- tables come for free -->" | |
}, | |
{ | |
"type": "table", | |
"align": [ | |
null, | |
null | |
], | |
"children": [ | |
{ | |
"type": "tableRow", | |
"children": [ | |
{ | |
"type": "tableCell", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Header 1" | |
} | |
] | |
}, | |
{ | |
"type": "tableCell", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Header 2" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "tableRow", | |
"children": [ | |
{ | |
"type": "tableCell", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Row 1" | |
} | |
] | |
}, | |
{ | |
"type": "tableCell", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Cell 2 ." | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- comments come for free, though, now that I think about it -->" | |
}, | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "These countries are exempt from this contract:" | |
} | |
] | |
}, | |
{ | |
"type": "list", | |
"ordered": false, | |
"start": null, | |
"loose": false, | |
"children": [ | |
{ | |
"type": "listItem", | |
"loose": false, | |
"checked": null, | |
"children": [ | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Canada" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "listItem", | |
"loose": false, | |
"checked": null, | |
"children": [ | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Mexico" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- and of course basic formatting -->" | |
}, | |
{ | |
"type": "paragraph", | |
"children": [ | |
{ | |
"type": "strong", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "Note:" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": " This contract does " | |
}, | |
{ | |
"type": "emphasis", | |
"children": [ | |
{ | |
"type": "text", | |
"value": "not" | |
} | |
] | |
}, | |
{ | |
"type": "text", | |
"value": " apply to so-and-so." | |
} | |
] | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- extensions can be written in HTML style --> " | |
}, | |
{ | |
"type": "html", | |
"value": "<div class=\"signature\">\n {{ contract.Buyer }}\n *{[ buyerAffiliation ]}*\n {[ buyerSignedDate ]}\n</div>" | |
}, | |
{ | |
"type": "html", | |
"value": "<div class=\"signature\">\n {{ contract.Seller }}\n *{[ sellerAffiliation ]}*\n {[ sellerSignedDate ]}\n</div>" | |
}, | |
{ | |
"type": "html", | |
"value": "<!-- extensions can be written in HTML style --> " | |
}, | |
{ | |
"type": "html", | |
"value": "<div style=\"page-break-after: always\" />" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment