File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1428,7 +1428,15 @@ impl Command for MdCommand {
14281428 let mut current_code = String :: new ( ) ;
14291429 let mut current_lang: Option < String > = None ;
14301430
1431- let parser = MarkdownParser :: new ( & markdown) . map ( |event| match event {
1431+ let mut options = pulldown_cmark:: Options :: empty ( ) ;
1432+ options. insert ( pulldown_cmark:: Options :: ENABLE_TABLES ) ;
1433+ options. insert ( pulldown_cmark:: Options :: ENABLE_STRIKETHROUGH ) ;
1434+ options. insert ( pulldown_cmark:: Options :: ENABLE_TASKLISTS ) ;
1435+ options. insert ( pulldown_cmark:: Options :: ENABLE_FOOTNOTES ) ;
1436+ options. insert ( pulldown_cmark:: Options :: ENABLE_HEADING_ATTRIBUTES ) ;
1437+ options. insert ( pulldown_cmark:: Options :: ENABLE_GFM ) ;
1438+ options. insert ( pulldown_cmark:: Options :: ENABLE_DEFINITION_LIST ) ;
1439+ let parser = MarkdownParser :: new_ext ( & markdown, options) . map ( |event| match event {
14321440 Event :: Start ( Tag :: CodeBlock ( kind) ) => {
14331441 in_code_block = true ;
14341442 current_code. clear ( ) ;
You can’t perform that action at this time.
0 commit comments