From 1213df6c6d9adcd706306523a5ce0c66d118b4c7 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 10 Nov 2017 00:31:12 -0500 Subject: [PATCH] Change the TOC class name to ox-hugo-toc --- ox-hugo.el | 4 ++-- .../posts/post-with-export-options-toc-1-num-onlytoc.md | 4 ++-- .../content/posts/post-with-export-options-toc-2-num-nil.md | 2 +- .../content/posts/post-with-export-options-toc-2-num-t.md | 4 ++-- .../content/posts/post-with-export-options-toc-t-num-nil.md | 2 +- .../posts/post-with-export-options-toc-t-num-onlytoc.md | 4 ++-- .../content/posts/post-with-export-options-toc-t-num-t.md | 4 ++-- test/site/content/posts/post-with-toc-keyword-2.md | 2 +- test/site/content/posts/post-with-toc-keyword-6.md | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ox-hugo.el b/ox-hugo.el index 0231ae5c..112d20c4 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -810,11 +810,11 @@ contents according to the current headline." ;; Hide the bullets if section numbers are present for ;; even one heading. (concat "\n")) - "
\n" ;This is a nasty workaround + "
\n" ;This is a nasty workaround "
\n" ;till Hugo/Blackfriday support toc-headline ;wrapping Markdown in HTML div's. toc-items ;https://github.com/kaushalmodi/ox-hugo/issues/93 diff --git a/test/site/content/posts/post-with-export-options-toc-1-num-onlytoc.md b/test/site/content/posts/post-with-export-options-toc-1-num-onlytoc.md index f778891c..f0a6f7a0 100644 --- a/test/site/content/posts/post-with-export-options-toc-1-num-onlytoc.md +++ b/test/site/content/posts/post-with-export-options-toc-1-num-onlytoc.md @@ -5,11 +5,11 @@ draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-export-options-toc-2-num-nil.md b/test/site/content/posts/post-with-export-options-toc-2-num-nil.md index 719cf4e6..c1687b98 100644 --- a/test/site/content/posts/post-with-export-options-toc-2-num-nil.md +++ b/test/site/content/posts/post-with-export-options-toc-2-num-nil.md @@ -4,7 +4,7 @@ tags = ["export-option", "toc"] draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-export-options-toc-2-num-t.md b/test/site/content/posts/post-with-export-options-toc-2-num-t.md index 7ab8a801..a8b00be6 100644 --- a/test/site/content/posts/post-with-export-options-toc-2-num-t.md +++ b/test/site/content/posts/post-with-export-options-toc-2-num-t.md @@ -5,11 +5,11 @@ draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-export-options-toc-t-num-nil.md b/test/site/content/posts/post-with-export-options-toc-t-num-nil.md index 55665b90..7064e669 100644 --- a/test/site/content/posts/post-with-export-options-toc-t-num-nil.md +++ b/test/site/content/posts/post-with-export-options-toc-t-num-nil.md @@ -4,7 +4,7 @@ tags = ["export-option", "toc"] draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-export-options-toc-t-num-onlytoc.md b/test/site/content/posts/post-with-export-options-toc-t-num-onlytoc.md index 183a7e0c..7f4818f7 100644 --- a/test/site/content/posts/post-with-export-options-toc-t-num-onlytoc.md +++ b/test/site/content/posts/post-with-export-options-toc-t-num-onlytoc.md @@ -5,11 +5,11 @@ draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-export-options-toc-t-num-t.md b/test/site/content/posts/post-with-export-options-toc-t-num-t.md index effea51b..3f73e42a 100644 --- a/test/site/content/posts/post-with-export-options-toc-t-num-t.md +++ b/test/site/content/posts/post-with-export-options-toc-t-num-t.md @@ -5,11 +5,11 @@ draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-toc-keyword-2.md b/test/site/content/posts/post-with-toc-keyword-2.md index b004d193..17d7006f 100644 --- a/test/site/content/posts/post-with-toc-keyword-2.md +++ b/test/site/content/posts/post-with-toc-keyword-2.md @@ -4,7 +4,7 @@ tags = ["keyword", "toc"] draft = false +++ -
+
## Table of Contents diff --git a/test/site/content/posts/post-with-toc-keyword-6.md b/test/site/content/posts/post-with-toc-keyword-6.md index c95e6746..69dc486a 100644 --- a/test/site/content/posts/post-with-toc-keyword-6.md +++ b/test/site/content/posts/post-with-toc-keyword-6.md @@ -4,7 +4,7 @@ tags = ["keyword", "toc"] draft = false +++ -
+
## Table of Contents