I made a markdown block in Pluto to keep a to do list while I work on it.
md"""
# TODO:
1. Fix this.
2. Fix that.
"""
I can’t get strikethrough text to render.
md"""
# TODO:
1. ~~Fix this.~~
2. Fix that.
"""
md"""
# TODO:
1. <s>Fix this.</s>
2. Fix that.
"""
If I understand it correctly, they use Markdown.jl from the sodlib to render Markdown, see Markdown, but the default library seems to only cover Italics (_) and Bold (*) , cf Markdown · The Julia Language or in code julia/stdlib/Markdown/src/Common/inline.jl at master · JuliaLang/julia · GitHub
I tried a bit of raw html (<s>Strikethrough</s>) but could not get raw html to work either.
Maybe we should extend Markdown a bit?
edit:
plain html, so a cell like
html"<ul><li><s>A strike through thingy</s></li><li>A thingy</s></ul>"
would work, but is no Markdown for sure.
I don’t think strikethrough is part of standard Markdown, or the Julia dialect. Perhaps it’s a GIthub-flavour thing?
Y̶o̶u̶ c̶o̶u̶l̶d̶ fake it if you know how to type the combining strike through glyph (0x0336) after each character. But as you can guess, that’s not easy to do, and unattractive anyway.
1 Like
Yeah, I was hoping someone would know how to inject HTML into a markdown block. It works natively in my desktop software, but Pluto just renders the raw text.
Yes. Seems like also that is due to the Markdown backend Pluto uses. We could maybe improve the stdlib here.
Huh, I was surprised to find out it actually isn’t. I was sure it would be.
Not sure if there is a dedicated markdown extension, but I think CommonMark.jl seems good for this if going the mixed html route?
using CommonMark
cm"""
## TODO:
1. One
1. <s>Two</s> `# or <del></del>`
"""
1 Like