Remove figure width from multimarkdown figs when out_width=nothing, #34

pull/35/head
= 2016-04-23 08:51:06 +03:00
parent d5aaae43fc
commit 47317b512b
1 changed files with 6 additions and 1 deletions

View File

@ -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 "")