Mark Meyer <m...@ofosos.org> writes: > On 02/26/17 18:28, Nicolas Goaziou wrote: > I wrote it yesterday, the code's up at > > https://github.com/ofosos/org-epub
Great. > it's a little crufty, because I did write it for org 8 initially. > > Hmm, I have to think about it. I would like to either have a 1:1 mapping > between the elements `org-element' delvers and the links the export > backend generates or create a function that runs before the export that > generates :custom_id properties for every element that doesn't have > one. Did you look at `org-html--format-toc-headline'? Also, if you want to collect headlines above a given level, there is `org-export-collect-headlines'. > This was easier in org 8, since every internal link was just something > like `sec-8-2'. It is also easy in Org 9 : (org-export-get-reference headline info). See its use in the function above. Regards,