File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,10 @@ export default class MarkdownPreview extends React.Component {
483
483
eventEmitter . on ( 'export:save-md' , this . saveAsMdHandler )
484
484
eventEmitter . on ( 'export:save-html' , this . saveAsHtmlHandler )
485
485
eventEmitter . on ( 'print' , this . printHandler )
486
- eventEmitter . on ( 'config-renew' , this . rewriteIframe . bind ( this ) )
486
+ eventEmitter . on ( 'config-renew' , ( ) => {
487
+ this . markdown . updateConfig ( )
488
+ this . rewriteIframe ( )
489
+ } )
487
490
}
488
491
489
492
componentWillUnmount ( ) {
Original file line number Diff line number Diff line change @@ -265,9 +265,9 @@ class Markdown {
265
265
}
266
266
// FIXME We should not depend on global variable.
267
267
window . md = this . md
268
- ee . on ( 'config-renew' , ( ) => {
268
+ this . updateConfig = ( ) => {
269
269
config = ConfigManager . get ( )
270
- } )
270
+ }
271
271
}
272
272
273
273
render ( content ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Generated by [AVA](https://ava.li).
31
31
32
32
`<ul>␊
33
33
<li class="taskListItem"><input type="checkbox" id="checkbox-2" /> Unchecked</li>␊
34
- <li class="taskListItem"><input type="checkbox" checked id="checkbox-3" /> Checked</li>␊
34
+ <li class="taskListItem checked "><input type="checkbox" checked id="checkbox-3" /> Checked</li>␊
35
35
</ul>␊
36
36
`
37
37
You can’t perform that action at this time.
0 commit comments