metanorma / coradoc

Coradoc is the Core AsciiDoc Parser used by Metanorma
MIT License
1 stars 2 forks source link

Make Opal compatible for JS usage #73

Open ronaldtse opened 1 month ago

hmdne commented 1 month ago

From my initial outlook, this will involve porting the code:

Other than that, the work in the Plurimath project is already done on making the dependencies work.

If the second task is to be done by creating a compatibility layer, my suggestion would be to make this compatibility layer conform to the API of Nokogiri as much as possible. This approach has been done by at least two libraries that I know of:

ronaldtse commented 1 month ago

It sounds worthwhile, to develop an XML/HTML adapter layer, using Nokogiri syntax that is Opal compatible. That way, all our projects can share this.