Skip to content

Commit

Permalink
Add newline before the <!--endtoc--> comment; HTML validity
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Feb 26, 2018
1 parent d53acbb commit 71509bb
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ox-hugo.el
Expand Up @@ -1005,7 +1005,7 @@ contents according to the current headline."
"<div></div>\n" ;till Hugo/Blackfriday support
toc-headline ;wrapping Markdown in HTML div's.
toc-items ;https://github.com/kaushalmodi/ox-hugo/issues/93
"\n"
"\n\n"
"</div>\n"
;; Special comment that can be use to filter out the TOC
;; from .Summary in Hugo templates.
Expand Down
1 change: 1 addition & 0 deletions test/site/content/posts/link-to-headings-by-name.md
Expand Up @@ -21,6 +21,7 @@ draft = false
- <span class="section-num">1.1.2</span> [Epsilon 102.1.2](#epsilon-102-dot-1-dot-2)
- [Zeta 103](#zeta-103)
- [Links (no descriptions) to headings with section numbers](#links--no-descriptions--to-headings-with-section-numbers)

</div>
<!--endtoc-->

Expand Down
1 change: 1 addition & 0 deletions test/site/content/posts/no-toc-in-summary.md
Expand Up @@ -12,6 +12,7 @@ draft = false
- [`ox-hugo`'s Solution](#ox-hugo-s-solution)
- [Snippet](#snippet)
- [Example](#example)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -17,6 +17,7 @@ draft = false
- <span class="section-num">1</span> [Post sub-heading 1](#post-sub-heading-1)
- <span class="section-num">2</span> [Post sub-heading 2](#post-sub-heading-2)
- <span class="section-num">3</span> [Post sub-heading 3](#post-sub-heading-3)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -18,6 +18,7 @@ draft = false
- [Post sub-heading 2.2](#post-sub-heading-2-dot-2)
- [Post sub-heading 3](#post-sub-heading-3)
- [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -23,6 +23,7 @@ draft = false
- <span class="section-num">2.2</span> [Post sub-heading 2.2](#post-sub-heading-2-dot-2)
- <span class="section-num">3</span> [Post sub-heading 3](#post-sub-heading-3)
- <span class="section-num">3.1</span> [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -22,6 +22,7 @@ draft = false
- [Post sub-heading 2.2.3](#post-sub-heading-2-dot-2-dot-3)
- [Post sub-heading 3](#post-sub-heading-3)
- [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -27,6 +27,7 @@ draft = false
- <span class="section-num">2.2.2</span> [Post sub-heading 2.2.3](#post-sub-heading-2-dot-2-dot-3)
- <span class="section-num">3</span> [Post sub-heading 3](#post-sub-heading-3)
- <span class="section-num">3.1</span> [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
Expand Up @@ -27,6 +27,7 @@ draft = false
- <span class="section-num">2.2.2</span> [Post sub-heading 2.2.3](#post-sub-heading-2-dot-2-dot-3)
- <span class="section-num">3</span> [Post sub-heading 3](#post-sub-heading-3)
- <span class="section-num">3.1</span> [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
1 change: 1 addition & 0 deletions test/site/content/posts/post-with-toc-keyword-2.md
Expand Up @@ -18,6 +18,7 @@ draft = false
- [Post sub-heading 2.2](#post-sub-heading-2-dot-2)
- [Post sub-heading 3](#post-sub-heading-3)
- [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down
1 change: 1 addition & 0 deletions test/site/content/posts/post-with-toc-keyword-6.md
Expand Up @@ -22,6 +22,7 @@ draft = false
- [Post sub-heading 2.2.3](#post-sub-heading-2-dot-2-dot-3)
- [Post sub-heading 3](#post-sub-heading-3)
- [Post sub-heading 3.1](#post-sub-heading-3-dot-1)

</div>
<!--endtoc-->

Expand Down

0 comments on commit 71509bb

Please sign in to comment.