From 20eb8ac7fded0220278e8818a92968328f9014eb Mon Sep 17 00:00:00 2001 From: Kolen Cheung Date: Thu, 9 Dec 2021 20:36:56 -0800 Subject: ipynb writer: handle cell output with raw block of markdown (#7563) Write RawBlock of markdown in code-cell output. #7561 makes the ipynb reader reads code-cell output with mime "text/markdown" to a RawBlock of markdown This commit makes the ipynb writer writes this RawBlock of markdown back inside a code-cell output with the same mime, preserving this information in round-trip Add tests of ipynb reader (#7561) and ipynb writer (#7563)'s ability to handle a "text/markdown" mime type in a code-cell output --- test/Tests/Old.hs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Tests/Old.hs') diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs index d080f68f1..1d5b0b04e 100644 --- a/test/Tests/Old.hs +++ b/test/Tests/Old.hs @@ -219,6 +219,12 @@ tests pandocPath = "--markdown-headings=setext", "-t", "ipynb-raw_html-raw_tex+raw_attribute", "-s"] "ipynb/simple.in.native" "ipynb/simple.ipynb" + , test' "reader" ["-t", "native", "-f", "ipynb", + "--ipynb-output=all"] + "ipynb/mime.ipynb" "ipynb/mime.native" + , test' "writer" ["-f", "native", "-t", "ipynb", + "--wrap=preserve"] + "ipynb/mime.native" "ipynb/mime.out.ipynb" ] ] where -- cgit v1.2.3