eclipse-asciidoctor-editor icon indicating copy to clipboard operation
eclipse-asciidoctor-editor copied to clipboard

Handle idprefix and idseparator in documents for synchronized scrolling

Open de-jcup opened this issue 7 years ago • 2 comments

A config locking like

ifndef::env-site[]
:toc: left
:idprefix:
:idseparator: -
endif::[]

does change ID creation for asciidoctor parts and so synchronized scrolling does not work

(idprefix and idseparator ar the parts...)

So the headline id build mechansim must handle this

de-jcup avatar Sep 28 '18 08:09 de-jcup

What exactly breaks synchronized scrolling? It's not working in my documents which have the following:

= Document Title
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
:sectlinks:
// number our sections
:numbered:
:toc:
:toclevels: 3
:toc-placement!:

toc::[]

yeroc avatar May 24 '19 17:05 yeroc

This issue was about idprefix and idseparator

Both settings seems to change calculation of ids used inside output html documents.

Curret implementation has problems when id calculation is customized (in my first example it was :idseparator: -

Your given example should not have this problem, but I am not sure. Maybe its related too.

de-jcup avatar May 26 '19 14:05 de-jcup