@@ -50,7 +50,7 @@ async function addArticle(req, res, next) {
50
50
tocCallback : function ( tocMarkdown , tocArray , tocHtml ) {
51
51
titleArray = tocArray
52
52
}
53
- } ) . use ( require ( 'markdown-it-sub' ) ) . use ( require ( 'markdown-it-sup' ) ) . use ( require ( 'markdown-it-deflist' ) ) . use ( require ( 'markdown-it-abbr' ) ) . use ( require ( 'markdown-it-footnote' ) ) . use ( require ( 'markdown-it-ins' ) ) . use ( require ( 'markdown-it-mark' ) ) . render ( `@[toc]${ req . body . content } ` )
53
+ } ) . use ( require ( 'markdown-it-sub' ) ) . use ( require ( 'markdown-it-sup' ) ) . use ( require ( 'markdown-it-deflist' ) ) . use ( require ( 'markdown-it-abbr' ) ) . use ( require ( 'markdown-it-footnote' ) ) . use ( require ( 'markdown-it-ins' ) ) . use ( require ( 'markdown-it-mark' ) ) . render ( `@[toc]\r ${ req . body . content } ` )
54
54
let insertData = await mysql . query ( 'INSERT INTO vue_blog (articleTitle, articleSubTitle, articleNature, articleKey, articleContentMarkdown, articleContentHtml, articleAuthorId, articleCreateTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?)' ,
55
55
[ req . body . title , subTitle , req . body . nature , req . body . keyWords . join ( ) , req . body . content , articleContentHtml , req . body . authorId , moment ( ) . format ( 'YYYY-MM-DD HH:mm:ss' ) ] )
56
56
titleArray . map ( item => {
0 commit comments