Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/delsner/asciidoctor-scroll-highlighting
- Owner: delsner
- Created: 2016-08-10T07:40:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-10T09:15:06.000Z (over 8 years ago)
- Last Synced: 2024-11-11T19:42:14.509Z (2 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
````