Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown list is not converted to HTML list #1051

Open
UnlimitedCookies opened this issue Nov 10, 2024 · 1 comment
Open

Markdown list is not converted to HTML list #1051

UnlimitedCookies opened this issue Nov 10, 2024 · 1 comment
Labels

Comments

@UnlimitedCookies
Copy link

A list with dashes - is just plainly being inserted into the final HTML document without first being to a HTML list converted; resulting in a mingled document.

Something like

- Firstly
- Secondly
- Thirdly

is displayed as

- Firstly - Secondly - Thirdly

while e. g. markdown links are converted totally fine.

I'm on version 4.16.1.0.
The corresponding route is

    match "posts/*" $ do
        route $ setExtension "html"
        compile $ pandocCompiler
            >>= saveSnapshot "content"
            >>= loadAndApplyTemplate "templates/post.html"    postCtx
            >>= saveSnapshot "feed"
            >>= loadAndApplyTemplate "templates/default.html" postCtx
            >>= relativizeUrls
@LaurentRDC
Copy link
Collaborator

Hmm that is curious. In the Markdown spec, lists items can start with -.
Can you provide a Markdown file example so I can try it locally?

@LaurentRDC LaurentRDC added the bug label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants