kuhumcst / hiccup-tools

Navigate and manipulate Hiccup documents.
1 stars 0 forks source link

hiccup->text function #1

Closed simongray closed 3 weeks ago

simongray commented 4 weeks ago

Basically, this function needs to go recursively through Hiccup and keep text as text, while the Hiccup vectors are converted based on some standard mapping from either tag->fn or pred->fn, e.g. for converting HTML to text it might be matching block level elements such as [:p]and elements causing linebreaks such as [:li] and the associated functions would then add either \n\n or \n.

simongray commented 3 weeks ago

Some state of done + tests in ea24f8b7fca4a5b8e7ee476dc24756e42079ee8c