fixup! parser: impl link references

This commit is contained in:
Noah Hellman 2023-01-29 15:10:41 +01:00
parent 493a9b3563
commit 3e8b80059e

View file

@ -349,6 +349,8 @@ impl<'s> Parser<'s> {
pub fn new(src: &'s str) -> Self {
let tree = block::parse(src);
// All link definition tags have to be obtained initially, as references can appear before
// the definition.
let link_definitions = {
let mut branch = tree.clone();
let mut defs = std::collections::HashMap::new();