feat(config): define todo_keywords in tuple
This commit is contained in:
parent
3b646aa7a5
commit
2b8d2590ff
12 changed files with 111 additions and 96 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use indextree::NodeId;
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
use crate::elements::{Element, Table, TableRow, Title};
|
||||
use crate::elements::{Element, Table, TableRow};
|
||||
use crate::Org;
|
||||
|
||||
/// Validation Error
|
||||
|
|
@ -104,8 +104,8 @@ impl Org<'_> {
|
|||
errors.push(ValidationError::ExpectedChildren { at: node_id });
|
||||
}
|
||||
}
|
||||
Element::Title(Title { raw, .. }) => {
|
||||
if !raw.is_empty() && node.first_child().is_none() {
|
||||
Element::Title(title) => {
|
||||
if !title.raw.is_empty() && node.first_child().is_none() {
|
||||
errors.push(ValidationError::ExpectedChildren { at: node_id });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue