wallyqs / org-ruby

An Org mode parser written in Ruby.
218 stars 51 forks source link

Generate HTML headline id (optional) #68

Closed swaroopch closed 1 year ago

swaroopch commented 5 years ago

Motivation is to be able to generate Table of Contents via https://github.com/snosov1/toc-org and the links should work when a README.org is rendered.

For example, compare the heading links at https://gitlab.com/AmrMKayid/readme-template/blob/master/README.md#installation (via Markdown) vs. https://gitlab.com/swaroopch/rangoli-emacs/blob/master/README.org (via OrgMode)

It's been a while since I wrote Ruby, so I may not have followed Ruby idioms. Please do let me know so that I can fix up anything that is not consistent with the code or documentation standards.

Thank you!


#

swaroopch commented 5 years ago

@wallyqs I couldn't figure out how to add the id to the headings itself, can you please guide on how to achieve that? Thanks!