fix #624
This commit is contained in:
+7
-2
@@ -75,10 +75,15 @@ $(document).ready(function () {
|
||||
'pre' : 'pre|code'
|
||||
});
|
||||
|
||||
converter.hook('beforeParseInline', function (html) {
|
||||
return html.replace(/^\s*<!\-\-\s*more\s*\-\->\s*$/, function () {
|
||||
return converter.makeHolder('<!--more-->');
|
||||
});
|
||||
});
|
||||
|
||||
// 自动跟随
|
||||
converter.hook('makeHtml', function (html) {
|
||||
// convert all comment
|
||||
html = html.replace(/<!--(.+?)-->/g, '<!--$1-->');
|
||||
html = html.replace('<p><!--more--></p>', '<!--more-->');
|
||||
|
||||
if (html.indexOf('<!--more-->') > 0) {
|
||||
var parts = html.split(/\s*<\!\-\-more\-\->\s*/),
|
||||
|
||||
Reference in New Issue
Block a user