From 5993e6c79143bfe9ba989d450f8aece366af7d82 Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Wed, 17 Feb 2016 21:25:53 +0100 Subject: [PATCH] Ignore headings for annotations --- lib/page/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page/html.js b/lib/page/html.js index afa293696..d667059d9 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);