diff --git a/preview-src/index.adoc b/preview-src/index.adoc index bdae1cd..7cb7d84 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -285,6 +285,9 @@ Eu mea inani iriure. [discrete] == Voluptua singulis +[discrete] +=== Nominavi luptatum + Cum dicat putant ne. Est in reque homero principes, meis deleniti mediocrem ad has. Ex nam suas nemore dignissim, vel apeirian democritum et. diff --git a/src/js/02-on-this-page.js b/src/js/02-on-this-page.js index 035bea4..3271eac 100644 --- a/src/js/02-on-this-page.js +++ b/src/js/02-on-this-page.js @@ -14,7 +14,7 @@ var headingSelector = [articleSelector] if (level) { for (var l = 1; l <= level; l++) headingSelector.push((l === 2 ? '.sectionbody>' : '') + '.sect' + l) - headingSelector.push('h' + (level + 1) + '[id]') + headingSelector.push('h' + (level + 1) + '[id]' + (level > 1 ? ':not(.discrete)' : '')) } else { headingSelector.push('h1[id].sect0') }