Skip to content

Conversation

@pablo-meier
Copy link

🎵 The song for this PR is Gerudo Valley Theme Acapella, from the Legend of Zelda: Ocarina of Time soundtrack, performed by Smooth McGroove. 🎵

I'm having trouble rendering raw HTML from my Markdown using Cmark, even when omitting the Safe flag:

Cmark.of_string "**Hello World**<img src=\"html\" />" |> Cmark.to_html ~flags:[];;
> : string = "<p><strong>Hello World</strong><!-- raw HTML omitted --></p>\n"

This makes it hard to render the content I'd like to render.

Looking at other cmark wrappers, it appears the flag 131072 can explicitly set "Unsafe" (source).

1 lsl 17;;
> : int = 131072

Haven't tested this since I haven't installed car or anything, but thought I'd try pushing it up before anything else.

@pablo-meier
Copy link
Author

pablo-meier commented Aug 18, 2019

Also have a branch, where I moved it over to Dune, because I'm still a little new to OCaml and that's the only build tool I'm even a little familiar with 😛

pablo-meier and others added 3 commits August 20, 2019 23:29
Builds with dune, formats with ocamlformat, and cmarker.opam changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant