wip fix span / typeset precedence

This commit is contained in:
Noah Hellman 2022-12-22 20:39:11 +01:00
parent 352be02ccf
commit d8d464902a
3 changed files with 182 additions and 118 deletions

View file

@ -270,7 +270,7 @@ impl BlockParser {
))
}
}
'{' => attr::valid(line_t.chars())
'{' => (attr::valid(line_t.chars()) == line_t.trim_end().len())
.then(|| (Block::Atom(Attributes), Span::by_len(start, line_t.len()))),
'|' => (&line_t[line_t.len() - 1..] == "|"
&& &line_t[line_t.len() - 2..line_t.len() - 1] != "\\")