@@ -7,8 +7,9 @@ use crate::{
7
7
construct_name:: ConstructName ,
8
8
handle:: {
9
9
emphasis:: peek_emphasis, html:: peek_html, image:: peek_image,
10
- image_reference:: peek_image_reference, inline_code:: peek_inline_code, link:: peek_link,
11
- link_reference:: peek_link_reference, strong:: peek_strong, Handle ,
10
+ image_reference:: peek_image_reference, inline_code:: peek_inline_code,
11
+ inline_math:: peek_inline_math, link:: peek_link, link_reference:: peek_link_reference,
12
+ strong:: peek_strong, Handle ,
12
13
} ,
13
14
r#unsafe:: Unsafe ,
14
15
util:: {
@@ -322,6 +323,8 @@ impl<'a> State<'a> {
322
323
Node :: Strong ( strong) => strong. handle ( self , info, parent, node) ,
323
324
Node :: Text ( text) => text. handle ( self , info, parent, node) ,
324
325
Node :: ThematicBreak ( thematic_break) => thematic_break. handle ( self , info, parent, node) ,
326
+ Node :: Math ( math) => math. handle ( self , info, parent, node) ,
327
+ Node :: InlineMath ( inline_math) => inline_math. handle ( self , info, parent, node) ,
325
328
_ => Err ( Message {
326
329
place : None ,
327
330
reason : format ! ( "Unexpected node type `{:?}`" , node) ,
@@ -409,7 +412,7 @@ impl<'a> State<'a> {
409
412
index_stack : Vec :: new ( ) ,
410
413
options,
411
414
stack : Vec :: new ( ) ,
412
- r#unsafe : Unsafe :: get_default_unsafe ( ) ,
415
+ r#unsafe : Unsafe :: get_default_unsafe ( options ) ,
413
416
}
414
417
}
415
418
@@ -424,6 +427,7 @@ impl<'a> State<'a> {
424
427
Node :: LinkReference ( _) => Some ( peek_link_reference ( ) ) ,
425
428
Node :: Link ( link) => Some ( peek_link ( link, node, self ) ) ,
426
429
Node :: Strong ( _) => Some ( peek_strong ( self ) ) ,
430
+ Node :: InlineMath ( _) => Some ( peek_inline_math ( ) ) ,
427
431
_ => None ,
428
432
}
429
433
}
0 commit comments