aboutsummaryrefslogtreecommitdiff
path: root/_plugins/add-anchor-to-header-from-header-id.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_plugins/add-anchor-to-header-from-header-id.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/add-anchor-to-header-from-header-id.rb b/_plugins/add-anchor-to-header-from-header-id.rb
index d0df4d6..33e3ad7 100644
--- a/_plugins/add-anchor-to-header-from-header-id.rb
+++ b/_plugins/add-anchor-to-header-from-header-id.rb
@@ -1,5 +1,5 @@
Jekyll::Hooks.register [:documents, :pages], :post_render do |doc|
- if doc.output_ext == ".html"
+ if doc.output_ext == ".html" && doc.type != :slides
doc.output =
doc.output.gsub(
/<h([1-6])(.*?)id="([\w-]+)"(.*?)>(.*?)<\/h[1-6]>/,