Start the plain list module.
This commit is contained in:
parent
f39319702c
commit
76b2325486
@ -7,6 +7,7 @@ mod list;
|
||||
mod paragraph;
|
||||
mod parser_context;
|
||||
mod parser_with_context;
|
||||
mod plain_list;
|
||||
mod text;
|
||||
mod token;
|
||||
mod util;
|
||||
|
8
src/parser/plain_list.rs
Normal file
8
src/parser/plain_list.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use super::error::Res;
|
||||
use super::token::PlainList;
|
||||
use super::Context;
|
||||
|
||||
pub fn plain_list<'r, 's>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, PlainList<'s>> {
|
||||
// todo
|
||||
todo!()
|
||||
}
|
@ -95,3 +95,14 @@ impl<'a> Source<'a> for Paragraph<'a> {
|
||||
self.source
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PlainList<'a> {
|
||||
pub source: &'a str,
|
||||
}
|
||||
|
||||
impl<'a> Source<'a> for PlainList<'a> {
|
||||
fn get_source(&'a self) -> &'a str {
|
||||
self.source
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user