diff options
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | test/command/9388.md | 21 |
2 files changed, 22 insertions, 2 deletions
@@ -19,14 +19,13 @@ REVISION?=1 BENCHARGS?=--csv bench_$(TIMESTAMP).csv $(BASELINECMD) --timeout=6 +RTS -T --nonmoving-gc -RTS $(if $(PATTERN),--pattern "$(PATTERN)",) pandoc=$(shell cabal list-bin $(CABALOPTS) pandoc-cli) -all: test build ## build executable and run tests +all: build test binpath ## build executable and run tests .PHONY: all build: ## build executable cabal build \ --ghc-options='$(GHCOPTS)' \ $(CABALOPTS) pandoc-cli - @cabal list-bin $(CABALOPTS) --ghc-options='$(GHCOPTS)' pandoc-cli .PHONY: build binpath: ## print path of built pandoc executable diff --git a/test/command/9388.md b/test/command/9388.md new file mode 100644 index 000000000..291e80d58 --- /dev/null +++ b/test/command/9388.md @@ -0,0 +1,21 @@ +``` +% pandoc -f latex -t native +\begin{figure} +\centering +\includegraphics[width=0.5\linewidth,height=0.5\textheight]{figures/placeholder} +\caption{Example figure} +\end{figure} +^D +[ Figure + ( "" , [] , [] ) + (Caption + Nothing [ Plain [ Str "Example" , Space , Str "figure" ] ]) + [ Plain + [ Image + ( "" , [] , [ ( "width" , "50%" ) , ( "height", "50%" ) ] ) + [] + ( "figures/placeholder" , "" ) + ] + ] +] +``` |
