mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
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.
1.5 KiB
1.5 KiB
In [1]:
import matplotlib.pyplot as pltIn [2]:
fig, ax = plt.subplots(figsize=(1, 1), dpi=4)
ax.imshow([[0, 1], [2, 3]]);