File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88
99function postNote ( args , content ) {
1010 return '<div class="note ' + args . join ( ' ' ) + '">'
11- + hexo . render . renderSync ( { text : content , engine : 'markdown' } ) . trim ( )
11+ + hexo . render . renderSync ( { text : content , engine : 'markdown' } ) . split ( '\n' ) . join ( '' )
1212 + '</div>' ;
1313}
1414
1515hexo . extend . tag . register ( 'note' , postNote , { ends : true } ) ;
16- hexo . extend . tag . register ( 'alert ' , postNote , { ends : true } ) ;
16+ hexo . extend . tag . register ( 'subnote ' , postNote , { ends : true } ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function postTabs(args, content) {
3333 var tabIcon = tabParameters [ 1 ] || '' ;
3434 var tabHref = '' ;
3535
36- postContent = hexo . render . renderSync ( { text : postContent , engine : 'markdown' } ) ;
36+ postContent = hexo . render . renderSync ( { text : postContent , engine : 'markdown' } ) . trim ( ) ;
3737
3838 tabId += 1 ;
3939 tabHref = ( tabName + ' ' + tabId ) . toLowerCase ( ) . split ( ' ' ) . join ( '-' ) ;
@@ -55,3 +55,5 @@ function postTabs(args, content) {
5555}
5656
5757hexo . extend . tag . register ( 'tabs' , postTabs , { ends : true } ) ;
58+ hexo . extend . tag . register ( 'subtabs' , postTabs , { ends : true } ) ;
59+ hexo . extend . tag . register ( 'subsubtabs' , postTabs , { ends : true } ) ;
You can’t perform that action at this time.
0 commit comments