attr valid: return whether attrs non-empty
This commit is contained in:
parent
161dfec96d
commit
b512c670e6
3 changed files with 39 additions and 16 deletions
|
@ -270,7 +270,7 @@ impl BlockParser {
|
|||
))
|
||||
}
|
||||
}
|
||||
'{' => (attr::valid(line_t.chars()) == line_t.trim_end().len())
|
||||
'{' => (attr::valid(line_t.chars()).0 == 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] != "\\")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue