fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.92k stars 284 forks source link

The markdown used in Pluto notebooks doesn't render/support HTML tags #315

Closed Masacroso closed 3 years ago

Masacroso commented 3 years ago

As the title says: the markdown cells doesn't render HTML tags, by example the tag <small> and many others doesn't work, however support for HTML tags is an specification of the original markdown.

P.S.: the markdown used here in GITHUB support HTML tags.

Sh4pe commented 3 years ago

This appears to be a limitation of the Markdown package in the Julia stdlib, as you can see in the REPL:

julia> md"<b>foo</b>"
  <b>foo</b>

But note that you could use HTML as a workaround. Something like this works licely in Pluto:

image

Masacroso commented 3 years ago

This appears to be a limitation of the Markdown package in the Julia stdlib, as you can see in the REPL:

julia> md"<b>foo</b>"
  <b>foo</b>

But note that you could use HTML as a workaround. Something like this works licely in Pluto:

image

Very nice! I will close this. I didn't knew the syntax "blablabla" |> HTML, thanks, I will take a look at the documentation of Julia.

Sh4pe commented 3 years ago

Note that "blablabla" |> HTML ist synonymous to just HTML("blablabla"). |> is called the piping operator, see its documentation using ?|> in a Julia REPL.