Skip to content

Commit a565782

Browse files
authored
Merge pull request #82 from DMOJ/preview-events
Add preview event for extra postprocessing
2 parents 249a676 + 297f845 commit a565782

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

martor/static/martor/js/martor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
$('pre').each(function(i, block){
164164
hljs.highlightBlock(block);
165165
});
166+
$(document).trigger('martor:preview', [currentTab]);
166167
}else {currentTab.html('<p>Nothing to preview</p>');}
167168
},
168169
error: function(response) {

0 commit comments

Comments
 (0)