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