Add tests for pandoc labels, closes #127

pull/137/head
Matti Pastell 2018-07-27 10:22:30 +03:00
parent 89e990b1dd
commit 28428e0832
2 changed files with 3 additions and 1 deletions

View File

@ -38,4 +38,4 @@ scatter!(rand(100),markersize=6,c=:orange)
![](figures/plotsjl_test_gr_3_1.png)\
![A random walk.](figures/plotsjl_test_gr_random_1.png)
![A random walk.](figures/plotsjl_test_gr_random_1.png){#fig:random}

View File

@ -29,3 +29,5 @@ chunk.options[:out_width] = "100%"
@test Weave.formatfigures(chunk, Weave.multimarkdown) == "![Nice plot][figs/figures_plot1.png]\n\n[figs/figures_plot1.png]: figs/figures_plot1.png width=100%\n"
@test Weave.formatfigures(chunk, Weave.adoc) == "image::figs/figures_plot1.png[width=100%,title=\"Nice plot\"]"
chunk.options[:label] = "somefig"
@test Weave.formatfigures(chunk, Weave.pandoc) == "![Nice plot](figs/figures_plot1.png){width=100% #fig:somefig}\n"