|
|
@ -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 {
|
|
|
|