discourse-auto-bookmarks is a Discourse plugin for adding automatic HTML bookmarks to topics and easily get a sharable link which points at specific parts of the text.
Follow Install a Plugin
how-to from the official Discourse Meta, using
git clone https://github.com/acaporrini/discourse-auto-bookmarks.git
as the plugin command.
Hover over any h1,h2,h3,h4,h5,h6 header in your topics, a small bookmark icon will appear:
Right click the bookmark icon and select “Copy link address”:
Now you can share this bookmark link, it will open the topic exactly at the point where the bookmark is.
To run tests in your local environment visit http://localhost:3000/qunit?qunit_skip_core=1&qunit_single_plugin=discourse-auto-bookmarks