This commit is contained in:
Pan
2017-05-16 11:08:17 +08:00
parent 0da4e5e5a7
commit 4bed888e9d
8 changed files with 22 additions and 25 deletions

View File

@@ -1,8 +1,6 @@
/**
* Created by jiachenpan on 16/11/18.
*/
import showdown from 'showdown' // markdown转化
const converter = new showdown.Converter();
export function parseTime(time, cFormat) {
if (arguments.length === 0) {
@@ -214,6 +212,3 @@
}
}
export function showdownMD(md) {
return converter.makeHtml(md)
}