Skip to content

Commit

Permalink
Tracked the issue down to sourcepos being wrong on lines with unicode…
Browse files Browse the repository at this point in the history
… right parentheses. See kivikakk/comrak#495
  • Loading branch information
ryanpeach committed Dec 17, 2024
1 parent 7cf87af commit 071515c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/unlinked_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ impl Visitor for UnlinkedTextVisitor {
continue;
}
let alias = Alias::new(&patterns[found.pattern().as_usize()]);
if "lorem" == alias.to_string() {
println!("Found lorem");
}
let text_without_frontmatter = remove_frontmatter_from_source(source, node);
let sourcepos_start_offset_bytes = SourceOffset::from_location(
text_without_frontmatter,
Expand Down

0 comments on commit 071515c

Please sign in to comment.