A simple implementation of an Esignature application (e.g. Docusign) using unified-doc
. This example only focuses on signing features. Other useful ESignature features (e.g. searching) can be implemented and explored in the Doc preview example.
marks
initially to identify signature nodes.mark
nodes with custom content based on the data tracked in marks
.mark
CSS to render additional signature related data (e.g. :after
, content: attr(data-signed-date)
).doc.file()
dom.highlight()
dom.registerMarks()
dom.saveFile()
options.marks
options.sanitizeSchema
md
DocumentWith unified-doc, we now have the ability to esign markdown documents (or any document format that unified-doc supports). With this approach, we no longer have to:
If you think this is cool and would like to see how we generate a signed document with minimal effort, please sign here: {{SIGNATURE}} as well as the following places in the document below.
You can also {{SIGNATURE}} within a blockquote.