Org.jl icon indicating copy to clipboard operation
Org.jl copied to clipboard

Render to HTML AST

Open kovariance opened this issue 4 years ago • 1 comments

Currently, the (in-progress) HTML renderer outputs to a string (or, rather, to an IO buffer). It would be more convenient to render it to an HTML syntax tree structure. This would make it easier for the user to further modify the output without needlessly parsing the intermediate HTML. I think a good inspiration would be unfiedjs's approach.

Though, one potential issue would be supporting HTML export blocks, since that might require adding an HTML parser as a dependency.

kovariance avatar Jan 27 '22 23:01 kovariance

Hmm, this sounds like a good idea but may be best as an add-on package.

I've tried to structure this in such a way that building alternative exporters should be quite straightforward.

tecosaur avatar Jan 30 '22 05:01 tecosaur