i want to change markdown format of image to html.
But no success.
My html:
<label class="control-label abc-control-label" id="image2"></label>
<br>
<label class="control-label abc-control-label" id="image1"></label>
my javascript:
$image_markdown = $(this).text() $image_format =
$image_markdown.match(/!\[.*?\]\((.*?)\)/) $new_image = '<img src="' +
$image_format + '" style="width:200px">' $(this).html($new_image);
My demo link : https://jsfiddle.net/bvotcode/6y0gupjq/8/
Thank you