eeue56 / elm-static-html-lib

BSD 3-Clause "New" or "Revised" License
57 stars 11 forks source link

Markdown markup is not being rendered #7

Open mfeineis opened 6 years ago

mfeineis commented 6 years ago

The markdown logic seems to get skipped when running through elm-static-html-lib - it works in Elm Reactor and via elm-make.

The following repo contains a reproducible setup of the issue https://github.com/mfeineis/elm-static-html-lib-markdown-problem.

Setup: Ubuntu 17.10, Elm 0.18, Node 6.11.4 (installed via apt)

eeue56 commented 6 years ago

Markdown is currently not rendered to match marked, which is what elm-markdown uses. Adding support for that would be a substantial undertaking.

mfeineis commented 6 years ago

Ok,any suggestions on getting markdown working? Right now I'm just using plain html but markdown would be a nice to have :-). Thanks for looking into the issue

eeue56 commented 6 years ago

Unless you feel like writing a parser for markdown, my suggestion would be to just use plain html

mfeineis commented 6 years ago

Ok, thanks again, I can live with that

eeue56 commented 6 years ago

I'lll leave this open in case someone wants to try to implement it :)

mfeineis commented 6 years ago

FYI: I just finished migrating my blog to pablohirafuji/elm-markdown, which is written in Elm so this now generates HTML from my Markdown :-). The library has some issues with many HTML nodes inside the Markdown but at least it works good enough for me.