Fix footnote definition performance.
All checks were successful
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded

We were re-parsing each footnote definition in the footnote definition exit matcher which causes their contents to get re-parsed. This compounds with long lists of footnote definitions.
This commit is contained in:
Tom Alexander
2023-08-31 18:46:31 -04:00
parent 9e2a323f6f
commit b2383d9f93
8 changed files with 8 additions and 20 deletions

View File

@@ -3,7 +3,6 @@ use nom::bytes::complete::escaped;
use nom::bytes::complete::tag;
use nom::bytes::complete::take_till1;
use nom::character::complete::one_of;
use nom::combinator::verify;
use nom::multi::many_till;