Support subscript/superscript wrapped in parenthesis.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user