|
|
@@ -46,7 +46,7 @@ class NodeLineMapper {
|
|
|
this.headingNodes = this.container.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
|
|
let headings = [];
|
|
|
let needSectionNumber = window.vxOptions.sectionNumberEnabled;
|
|
|
- let regExp = /^\d(?:\.\d)*\.? /;
|
|
|
+ let regExp = Utils.headingSequenceRegExp();
|
|
|
for (let i = 0; i < this.headingNodes.length; ++i) {
|
|
|
let node = this.headingNodes[i];
|
|
|
let headingContent = this.getHeadingContent(node);
|