diff options
author | Kolen Cheung <christian.kolen@gmail.com> | 2021-12-10 16:18:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-12-11 09:42:30 -0800 |
commit | a9a9a2c62a811d0e64062b0be628f55ba541dad7 (patch) | |
tree | 2ff6ebe370be9e0b58d300cec8a29ba3c0ae1b0c /pandoc.cabal | |
parent | e88224621de1a8f1be4ea7ad9bf05fe635ddc3cc (diff) | |
download | pandoc-a9a9a2c62a811d0e64062b0be628f55ba541dad7.tar.gz |
fix(IpynbOutput)!: rank always favors output format
Previously, both `fmt == f` case and Image have a rank of 1.
In the end, e.g. from ipynb to html conversion,
if both html and image exists, it actually prefers the image.
This commit changes this, so that fmt == f is always highest rank,
and rank never collides.
This is achieved by keeping fmt == f case having rank 1,
and every other rank increased by 1.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 92513b911..69401bc8c 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -383,9 +383,12 @@ extra-source-files: test/pptx/*.pptx test/pptx/**/*.pptx test/pptx/**/*.native + test/ipynb/*.native test/ipynb/*.in.native test/ipynb/*.out.native test/ipynb/*.ipynb + test/ipynb/*.out.ipynb + test/ipynb/*.out.html test/txt2tags.t2t test/twiki-reader.twiki test/tikiwiki-reader.tikiwiki |