Jack Kamm <[email protected]> writes: >> I strongly suspect that reusing ox.el may end up being easier compared >> to custom templating solutions. Most parts of ox.el are pretty generic >> and can be applied to non-Org AST. And yes, ox.el does have templates. > > I was interested in this idea so made a prototype which I attach as a > patch. It converts the attached test-ics2org.ics to the attached > test-ics2org.org.
Looking at the code, I feel that it could be easier to not directly feed the icalendar AST to ox.el, but instead transform from icalendar AST to Org AST and then pass it through ox-org. That will also mirror pandoc approach with their intermediate AST representation. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
