Skip to content

Commit

Permalink
Add inline html unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
becheran committed Jun 5, 2021
1 parent 326eedb commit 5e62862
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/link_extractors/markdown_link_extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,19 @@ mod tests {
assert_eq!(vec![expected], result);
}

#[test]
fn raw_html_issue_31() {
let le = MarkdownLinkExtractor();
let result = le.find_links(&"Some text <a href=\"some_url\">link text</a> more text.");
let expected = MarkupLink {
target: "some_url".to_string(),
line: 1,
column: 11,
source: "".to_string(),
};
assert_eq!(vec![expected], result);
}

#[test]
fn referenced_link() {
let le = MarkdownLinkExtractor();
Expand Down

0 comments on commit 5e62862

Please sign in to comment.