add text/markdown output
Closed this issue · 5 comments
Would be good to add a trivial writemime(io::IO, ::MIME"text/markdown", md::Content)
method that just dumps the Markdown text.
This will be allow IJulia to send Markdown directly to IPython once ipython/ipython#4756 lands in a release, but is also useful in its own right.
I actually overloaded text/plain
originally to do just that, but it's commented out since it broke the terminal display. Once I've fixed that it'll be easy to add text/markdown
as an alias.
Although, it's worth noting that Markdown.jl already supports text/html
, so it should already work in IJulia to some extent.
(This was included in ipython 2.1.0)
👍
I was using Markdown's parser to manipulate Markdown documents and I currently don't see a way to (say) take the first 2 sections of a Markdown document and save it as a new Markdown document (although I can save it as HTML).
"text/plain" output is implemented on master now
I don't see any text/markdown
output.