Skip to content

Commit 7e55cd5

Browse files
committed
Add some tests for more markdown ignoring
1 parent a458569 commit 7e55cd5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

parser/src/ignore_block.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,14 @@ fn cbs_13() {
321321
],
322322
);
323323
}
324+
325+
#[test]
326+
fn ignore_link() {
327+
assert_eq!(bodies("[This is a link](https://example.com)"), []);
328+
assert_eq!(bodies("![This is an image](foo.png)"), []);
329+
330+
assert_eq!(
331+
bodies("[Link from def]\n\n[Link from def]: https://example.com"),
332+
[]
333+
);
334+
}

0 commit comments

Comments
 (0)