mirror of https://github.com/explosion/spaCy.git
Fix image mixin to allow figure with no args
This commit is contained in:
parent
a74376dca9
commit
d5c83a5810
|
@ -126,12 +126,12 @@ mixin codepen(slug, height, default_tab)
|
|||
|
||||
mixin image(url, width, caption, alt)
|
||||
figure.o-block&attributes(attributes)
|
||||
if url
|
||||
img(src=url alt=(alt || caption) width="#{width || 500}")
|
||||
|
||||
if caption
|
||||
+image-caption=caption
|
||||
|
||||
else
|
||||
block
|
||||
|
||||
//- Image caption
|
||||
|
|
Loading…
Reference in New Issue