aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorKolen Cheung <ickc@users.noreply.github.com>2021-12-09 20:36:56 -0800
committerGitHub <noreply@github.com>2021-12-09 20:36:56 -0800
commit20eb8ac7fded0220278e8818a92968328f9014eb (patch)
tree19d278995f685355c919f7a8275aa91684572beb /test/Tests
parentfa643ba6d78fd97f0a779840dca32bfea3b296f8 (diff)
downloadpandoc-20eb8ac7fded0220278e8818a92968328f9014eb.tar.gz
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
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Old.hs6
1 files changed, 6 insertions, 0 deletions
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