Skip to content

Commit 34fdc74

Browse files
committed
detect parent section of anchor even section has role
1 parent 36989c6 commit 34fdc74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

preview-src/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Altera atomorum his ex, has cu elitr melius propriae.
125125
Eos suscipit scaevola at.
126126
****
127127

128+
[.rolename]
128129
=== Liber recusabo
129130

130131
No sea, at invenire voluptaria mnesarchum has.

src/js/01-nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;(function () {
22
'use strict'
33

4-
var SECT_CLASS_RX = /^sect(\d)$/
4+
var SECT_CLASS_RX = /^sect[0-5](?=$| )/
55

66
var navContainer = document.querySelector('.nav-container')
77
var navToggle = document.querySelector('.nav-toggle')

0 commit comments

Comments
 (0)