CommonDoc / common-doc

A framework for representing and manipulating documents.
http://commondoc.github.io
40 stars 4 forks source link

Better TOC extraction, add `fill-unique-refs` operation #4

Closed eudoxia0 closed 9 years ago

eudoxia0 commented 9 years ago

The latter is an operation that goes through a document, giving each section a unique reference ID (The slug of its title, and if two sections have the same slug, appends an integer). This is used by TOC extraction to ensure every section has a valid link to it.