From 47317b512b4f534988095a54e3f5df08f3223140 Mon Sep 17 00:00:00 2001 From: = Date: Sat, 23 Apr 2016 08:51:06 +0300 Subject: [PATCH] Remove figure width from multimarkdown figs when out_width=nothing, #34 --- src/formatters.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/formatters.jl b/src/formatters.jl index 9573100..e4b25ab 100644 --- a/src/formatters.jl +++ b/src/formatters.jl @@ -376,7 +376,12 @@ function formatfigures(chunk, docformat::MultiMarkdown) caption = chunk.options[:fig_cap] result = "" figstring = "" - width = "width=$(chunk.options[:out_width])" + + if chunk.options[:out_width] == nothing + width = "" + else + width = "width=$(chunk.options[:out_width])" + end length(fignames) > 0 || (return "")