Fixed image align in markdown content
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -244,6 +244,13 @@ const parseContent = (content) => { | |||||||
|     }) |     }) | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
|  |   // Apply align-center to parent | ||||||
|  |  | ||||||
|  |   cr('img.align-center').each((i, elm) => { | ||||||
|  |     cr(elm).parent().addClass('align-center') | ||||||
|  |     cr(elm).removeClass('align-center') | ||||||
|  |   }) | ||||||
|  |  | ||||||
|   output = cr.html() |   output = cr.html() | ||||||
|  |  | ||||||
|   return output |   return output | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user