Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/delsner/asciidoctor-scroll-highlighting

A short script which enables highlighting the current position in your table of contents in a generated asciidoc html.
https://github.com/delsner/asciidoctor-scroll-highlighting

Last synced: about 16 hours ago
JSON representation

A short script which enables highlighting the current position in your table of contents in a generated asciidoc html.

Awesome Lists containing this project

README

        

# asciidoctor-scroll-highlighting
A short script which enables highlighting the current position in your table of contents as you scroll through the document.

![alt-tag](https://delsner.github.io/ScrollingBehavior.gif)

## Instructions
Add code snippet in [script](script.html) either anywhere in your `.adoc`-files and wrap it with `++++` or in the ``-section of the generated html.

### Note:
In order to have a table of contents and section anchors, you must set some properties correctly in the beginning of your `.adoc`-file:
````
:toc: left
:sectanchors: true
:sectlinks: true
:sectnums: true
````