Skip to content

markdownify not rendering as a html list but as a code block instead #45

Answered by allejo
robw4 asked this question in Q&A
Discussion options

You must be logged in to vote

Make sure that your includes/toc.html is formatted exactly as the toc.html in this repository. Some indentation may seem weird in this repo, but if you notice the weird indentation happens inside of {% capture %} statements. The extra space that's been added in your copy of this file is what's causing it to be rendered as a code block instead.

Here are the important changes that break toc.html in your test repo.

diff --git a/_includes/toc.html b/_includes/toc.html
index 6f19b31..22406be 100644
--- a/_includes/toc.html
+++ b/_includes/toc.html
@@ -130,23 +130,23 @@
             {% assign submenuIndentation = space | prepend: '    ' %}
 
             {% capture my_toc %}{{ my_toc }}
-

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by allejo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #45 on December 14, 2020 02:52.