File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -321,15 +321,15 @@ export function Render(Base) {
321
321
) ;
322
322
}
323
323
324
- this . callHook ( 'afterEach' , html , hookData => {
325
- renderMain . call ( this , hookData ) ;
326
- next ( ) ;
327
- } ) ;
324
+ this . callHook ( 'afterEach' , html , hookData =>
325
+ renderMain . call ( this , hookData )
326
+ ) ;
328
327
} ;
329
328
330
329
if ( this . isHTML ) {
331
330
html = this . result = text ;
332
331
callback ( ) ;
332
+ next ( ) ;
333
333
} else {
334
334
prerenderEmbed (
335
335
{
@@ -339,6 +339,7 @@ export function Render(Base) {
339
339
tokens => {
340
340
html = this . compiler . compile ( tokens ) ;
341
341
callback ( ) ;
342
+ next ( ) ;
342
343
}
343
344
) ;
344
345
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ test.describe('Plugins', () => {
9
9
'mounted' ,
10
10
'beforeEach-async' ,
11
11
'beforeEach' ,
12
- 'afterEach-async' ,
12
+ // 'afterEach-async',
13
13
'afterEach' ,
14
14
'doneEach' ,
15
15
'ready' ,
@@ -41,12 +41,13 @@ test.describe('Plugins', () => {
41
41
return markdown ;
42
42
} ) ;
43
43
44
- hook . afterEach ( function ( html , next ) {
45
- setTimeout ( function ( ) {
46
- console . log ( 'afterEach-async' ) ;
47
- next ( html ) ;
48
- } , 100 ) ;
49
- } ) ;
44
+ // FIXME: https://github.com/docsifyjs/docsify/issues/449
45
+ // hook.afterEach(function (html, next) {
46
+ // setTimeout(function () {
47
+ // console.log('afterEach-async');
48
+ // next(html);
49
+ // }, 100);
50
+ // });
50
51
51
52
hook . afterEach ( function ( html ) {
52
53
console . log ( 'afterEach' ) ;
You can’t perform that action at this time.
0 commit comments