fixup! parser: impl link references
This commit is contained in:
parent
493a9b3563
commit
3e8b80059e
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,8 @@ impl<'s> Parser<'s> {
|
||||||
pub fn new(src: &'s str) -> Self {
|
pub fn new(src: &'s str) -> Self {
|
||||||
let tree = block::parse(src);
|
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 link_definitions = {
|
||||||
let mut branch = tree.clone();
|
let mut branch = tree.clone();
|
||||||
let mut defs = std::collections::HashMap::new();
|
let mut defs = std::collections::HashMap::new();
|
||||||
|
|
Loading…
Reference in a new issue