Expand description
Finding the link targets in Markdown, and replacing the ones a resolver has an answer for. Code is left alone: fenced blocks and inline code spans show links as text, and rewriting them would change what they show.
Functionsยง
- rewrite_
line ๐ - rewrite_
links contentwith every link targetresolveanswers for replaced by its answer: inline links and images,[text](target), and reference definitions,[label]: target.- rewrite_
reference_ ๐definition [label]: targetat the start of a line, the target rewritten.- target_
length ๐ - How much of
text, which follows](, is the target: up to the space before a title or the closing parenthesis, or all of an<โฆ>target.