Support subscript/superscript wrapped in parenthesis.

This commit is contained in:
Tom Alexander
2023-09-21 19:21:47 -04:00
parent 9b2348c0ef
commit 4f34ab9089
3 changed files with 55 additions and 7 deletions

View File

@@ -257,13 +257,6 @@ fn _path_plain_parenthesis_end<'s>(
starting_parenthesis_depth: BracketDepth,
) -> Res<OrgSource<'s>, OrgSource<'s>> {
let current_depth = input.get_parenthesis_depth() - starting_parenthesis_depth;
eprintln!(
"current_depth: {}, starting: {}, now: {}, remaining input: {}",
current_depth,
starting_parenthesis_depth,
input.get_parenthesis_depth(),
input
);
if current_depth < 0 {
// This shouldn't be possible because if depth is 0 then a closing parenthesis should end the link.
unreachable!("Exceeded plain link parenthesis depth.")