Skip to content

Markdown issue after building theme CSS from source #481

Answered by bob3x255
bob3x255 asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out, apparently typography's prose plug-in haven't been applied in my layout.
I find out the same issue with other SSGs, the solution is to make sure you include prose property in layout element.

However, now Markdown formatting is not applied, for instance <sup> tags.

front matter

content: |
        1. List item
        2. List item
        3. List item

        A<sub>2</sub>

layout

<div class = "prose mt-6 pb-6 text-lg">
     {{ .content | markdownify  }}
</div>

output

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmooring
Comment options

@bob3x255
Comment options

Answer selected by bob3x255
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