accordproject / cicero-ui

A library of React components for Accord Project templates
Apache License 2.0
29 stars 46 forks source link

feat(*): support clause parsing #391

Closed irmerk closed 4 years ago

irmerk commented 4 years ago

No Issue

Support parsing, most notably in the demo

Changes

Flags

jeromesimeon commented 4 years ago

I'm getting parse exceptions locally. Not sure if I'm building it wrong. I did npm install npm run dev

  ``` <clause src="https://templates.accordproject.org/archives/acceptance-of-delivery@0.13.1.cta" clauseid="345"/>
  ^
Unexpected "`"

Maybe we need something similar to what we used to do in the demo for the slate47 version? https://github.com/accordproject/cicero-ui/blob/cb874335ba6e507249fa6cc39c1120067edf84df/demo/src/index.js#L92-L97

i.e., get the content of the clause node rather than just the clause node?