Site Notice
hello, world
Difference between revisions of "Markdown"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 6: | Line 6: | ||
var converter = new showdown.Converter(); | var converter = new showdown.Converter(); | ||
content = converter.makeHtml(content); | content = converter.makeHtml(content); | ||
− | $(' | + | $('.markdown-text').after('<div class="markdown">' + content + '</div>').remove(); |
}); | }); | ||
</script> | </script> |
Latest revision as of 03:47, 17 April 2020
<html> <script src="https://cdn.bootcss.com/showdown/1.3.0/showdown.min.js"></script> <script> $(function(){
var content = $('.markdown-text').text(); var converter = new showdown.Converter(); content = converter.makeHtml(content); $('.markdown-text').after('<div class="markdown">' + content + '</div>').remove();
}); </script> </html>
## Header * List [https://wjghj.cn](wjghj.cn)