summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-17 21:25:53 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-17 21:25:53 +0100
commit5993e6c79143bfe9ba989d450f8aece366af7d82 (patch)
tree7f244cfd2d27df0012a2c3dfeb110291a792a0cb
parent1ec8b7c32403c2252ea379c327349fcc937b57fc (diff)
downloadgitbook-5993e6c79143bfe9ba989d450f8aece366af7d82.zip
gitbook-5993e6c79143bfe9ba989d450f8aece366af7d82.tar.gz
gitbook-5993e6c79143bfe9ba989d450f8aece366af7d82.tar.bz2
Ignore headings for annotations
-rw-r--r--lib/page/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/page/html.js b/lib/page/html.js
index afa2936..d667059 100644
--- a/lib/page/html.js
+++ b/lib/page/html.js
@@ -7,7 +7,7 @@ var Promise = require('../utils/promise');
var location = require('../utils/location');
// Selector to ignore
-var ANNOTATION_IGNORE = '.no-glossary,code,pre,a,script';
+var ANNOTATION_IGNORE = '.no-glossary,code,pre,a,script,h1,h2,h3,h4,h5,h6';
function HTMLPipeline(htmlString, opts) {
_.bindAll(this);