Small utility to add a floating table of contents a la Dropbox Paper
install Ootliner with npm:
npm install --save ootliner
Then import the module, below is an example of using ootliner in a gatsby blog.
import ootliner from 'ootliner'
class BlogPostTemplate extends React.Component {
componentDidMount() {
ootliner()
}
// ...
<script src="https://unpkg.com/ootliner@0.0.2/lib/index.js "></script>
<script> ootliner()</script>
git clone https://github.com/teesloane/ootliner.git
cd ootliner
npm install
npm run dev
# Open ./example/index.html to view Ootliner in use.