File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -416,8 +416,24 @@ mod tests {
416
416
}
417
417
418
418
#[ test]
419
- fn respects_config ( ) {
420
- let source = r#"[elijah-potter/harper](https://github.com/elijah-potter/harper)"# ;
419
+ fn issue_194 ( ) {
420
+ let source = r"<http://localhost:9093>" ;
421
+ let parser = Markdown :: new ( MarkdownOptions {
422
+ ignore_link_title : true ,
423
+ ..MarkdownOptions :: default ( )
424
+ } ) ;
425
+ let token_kinds = parser
426
+ . parse_str ( source)
427
+ . iter ( )
428
+ . map ( |t| t. kind )
429
+ . collect :: < Vec < _ > > ( ) ;
430
+
431
+ assert ! ( matches!( token_kinds. as_slice( ) , & [ TokenKind :: Unlintable ] ) ) ;
432
+ }
433
+
434
+ #[ test]
435
+ fn respects_link_title_config ( ) {
436
+ let source = r"[elijah-potter/harper](https://github.com/elijah-potter/harper)" ;
421
437
let parser = Markdown :: new ( MarkdownOptions {
422
438
ignore_link_title : true ,
423
439
..MarkdownOptions :: default ( )
You can’t perform that action at this time.
0 commit comments