dev_forum
hjm 5 years ago
parent a3a4e5df80
commit bd93a5aaec

@ -6,7 +6,7 @@ export function isImageExtension(fileName) {
export function markdownToHTML(oldContent, selector) { export function markdownToHTML(oldContent, selector) {
window.$('#md_div').html('') window.$('#md_div').html('')
// markdown to html // markdown to html
if (selector && oldContent && oldContent.startsWith('<p>')) { // 普通html处理 if (selector && oldContent && oldContent.startsWith('<p')) { // 普通html处理
window.$(selector).html(oldContent) window.$(selector).html(oldContent)
} else { } else {
try { try {

Loading…
Cancel
Save