|
|
|
@ -6,6 +6,9 @@ export function isImageExtension(fileName) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function markdownToHTML(oldContent, selector) {
|
|
|
|
|
console.log(oldContent)
|
|
|
|
|
console.log(selector)
|
|
|
|
|
if(oldContent){
|
|
|
|
|
window.$('#md_div').html('')
|
|
|
|
|
// markdown to html
|
|
|
|
|
if (selector && oldContent && oldContent.startsWith('<p')) { // 普通html处理
|
|
|
|
@ -40,6 +43,8 @@ export function markdownToHTML(oldContent, selector) {
|
|
|
|
|
return content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function _doDownload(options) {
|
|
|
|
|
$.fileDownload(getUrl() + "/api" + options.url, {
|
|
|
|
|
successCallback: options.successCallback,
|
|
|
|
|