@@ -29,7 +29,8 @@ pub(crate) type DocumentationLink = String;
29
29
/// Rewrite documentation links in markdown to point to an online host (e.g. docs.rs)
30
30
pub ( crate ) fn rewrite_links ( db : & RootDatabase , markdown : & str , definition : & Definition ) -> String {
31
31
let mut cb = broken_link_clone_cb;
32
- let doc = Parser :: new_with_broken_link_callback ( markdown, Options :: empty ( ) , Some ( & mut cb) ) ;
32
+ let doc =
33
+ Parser :: new_with_broken_link_callback ( markdown, Options :: ENABLE_TASKLISTS , Some ( & mut cb) ) ;
33
34
34
35
let doc = map_links ( doc, |target, title : & str | {
35
36
// This check is imperfect, there's some overlap between valid intra-doc links
@@ -64,8 +65,7 @@ pub(crate) fn rewrite_links(db: &RootDatabase, markdown: &str, definition: &Defi
64
65
pub ( crate ) fn remove_links ( markdown : & str ) -> String {
65
66
let mut drop_link = false ;
66
67
67
- let mut opts = Options :: empty ( ) ;
68
- opts. insert ( Options :: ENABLE_FOOTNOTES ) ;
68
+ let opts = Options :: ENABLE_TASKLISTS | Options :: ENABLE_FOOTNOTES ;
69
69
70
70
let mut cb = |_: BrokenLink | {
71
71
let empty = InlineStr :: try_from ( "" ) . unwrap ( ) ;
@@ -123,7 +123,7 @@ pub(crate) fn extract_definitions_from_markdown(
123
123
) -> Vec < ( TextRange , String , Option < hir:: Namespace > ) > {
124
124
Parser :: new_with_broken_link_callback (
125
125
markdown,
126
- Options :: empty ( ) ,
126
+ Options :: ENABLE_TASKLISTS ,
127
127
Some ( & mut broken_link_clone_cb) ,
128
128
)
129
129
. into_offset_iter ( )
0 commit comments