File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,12 @@ module.exports = function math_plugin(md, options) {
235
235
blockClose = options . blockClose || '$$$' ;
236
236
var inlineRenderer = options . inlineRenderer ?
237
237
function ( tokens , idx ) {
238
- return options . inlineRenderer ( tokens [ idx ] . content ) ;
238
+ return options . inlineRenderer ( tokens [ idx ] . content , tokens [ idx ] ) ;
239
239
} :
240
240
makeMathRenderer ( options . renderingOptions ) ;
241
241
var blockRenderer = options . blockRenderer ?
242
242
function ( tokens , idx ) {
243
- return options . blockRenderer ( tokens [ idx ] . content ) + '\n' ;
243
+ return options . blockRenderer ( tokens [ idx ] . content , tokens [ idx ] ) + '\n' ;
244
244
} :
245
245
makeMathRenderer ( Object . assign ( { display : 'block' } ,
246
246
options . renderingOptions ) ) ;
You can’t perform that action at this time.
0 commit comments