packages feed

pandoc-crossref 0.3.15.1 → 0.3.15.2

raw patch · 6 files changed

+60/−3 lines, 6 filesdep ~pandocPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: pandoc

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## 0.3.15.2++-   Fix single-row subfigures++    Subfigures in a single row weren't handled correctly since 0.3.15.0. See <https://github.com/lierdakil/pandoc-crossref/issues/381> for details.+ ## 0.3.15.1  -   Do not copy image attributes to implicit figure element
lib-internal/Text/Pandoc/CrossRef/References/Blocks.hs view
@@ -72,7 +72,6 @@   = case init content of       [Figure ("", [], []) _ content'] -- nested figure due to implicit_figures...         -> runFigure False attr (Caption Nothing [Para caption]) content'-      [x] -> runFigure False attr (Caption Nothing [Para caption]) [x]       xs -> runSubfigures attr xs caption replaceBlock (Div attr@(label, _, _) [Table tattr (Caption short (btitle:rest)) colspec header cells foot])   | not $ null $ blocksToInlines [btitle]
pandoc-crossref.cabal view
@@ -1,11 +1,11 @@ cabal-version: 2.0 --- This file has been generated from package.yaml by hpack version 0.35.0.+-- This file has been generated from package.yaml by hpack version 0.35.1. -- -- see: https://github.com/sol/hpack  name:           pandoc-crossref-version:        0.3.15.1+version:        0.3.15.2 synopsis:       Pandoc filter for cross-references description:    pandoc-crossref is a pandoc filter for numbering figures, equations, tables and cross-references to them. category:       Text@@ -102,6 +102,9 @@     test/m2m/subfigures-grid/expect.md     test/m2m/subfigures-grid/expect.tex     test/m2m/subfigures-grid/input.md+    test/m2m/subfigures-one-row/expect.md+    test/m2m/subfigures-one-row/expect.tex+    test/m2m/subfigures-one-row/input.md     test/m2m/subfigures/expect.md     test/m2m/subfigures/expect.tex     test/m2m/subfigures/input.md
+ test/m2m/subfigures-one-row/expect.md view
@@ -0,0 +1,16 @@+# Figures++Regression test for+[#381](https://github.com/lierdakil/pandoc-crossref/issues/381)++::: {#fig:latex .figure .subfigures}+![a](/tmp/LaTeX_logo.svg.png){#fig:logo1 width="40%"}+![b](/tmp/LaTeX_logo.svg.png){#fig:logo2 width="40%"}++::: caption+Figure 1: Copies of the LaTeX logo. a --- cool caption, b --- cooler+caption+:::+:::++Those logos are different I swear. Especially fig. 1 (a) and fig. 1 (b).
+ test/m2m/subfigures-one-row/expect.tex view
@@ -0,0 +1,21 @@+\hypertarget{figures}{%+\section{Figures}\label{figures}}++Regression test for+\href{https://github.com/lierdakil/pandoc-crossref/issues/381}{\#381}++\begin{pandoccrossrefsubfigures}++\subfloat[cool+caption]{\includegraphics[width=0.4\textwidth,height=\textheight]{/tmp/LaTeX_logo.svg.png}\label{fig:logo1}}+\subfloat[cooler+caption]{\includegraphics[width=0.4\textwidth,height=\textheight]{/tmp/LaTeX_logo.svg.png}\label{fig:logo2}}++\caption[{Copies of the LaTeX logo}]{Copies of the LaTeX logo}++\label{fig:latex}++\end{pandoccrossrefsubfigures}++Those logos are different I swear. Especially fig.~\ref{fig:logo1} and+fig.~\ref{fig:logo2}.
+ test/m2m/subfigures-one-row/input.md view
@@ -0,0 +1,12 @@+# Figures++Regression test for [#381](https://github.com/lierdakil/pandoc-crossref/issues/381)++<div id="fig:latex">+![cool caption](/tmp/LaTeX_logo.svg.png){#fig:logo1 width=40%}+![cooler caption](/tmp/LaTeX_logo.svg.png){#fig:logo2 width=40%}++Copies of the LaTeX logo+</div>++Those logos are different I swear. Especially [@fig:logo1] and [@fig:logo2].