Add a test case showing only paragraphs exist on the first line for plain lists.

This commit is contained in:
Tom Alexander 2023-03-25 13:25:20 -04:00
parent ab09edb5de
commit 4a863e92ff
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
Seems like the only element that can exist on the same line as the opening of an item is a paragraph. Perhaps all other elements should have a start of line matcher at the beginning of their parser to force this?

View File

@ -0,0 +1,4 @@
1. regular
1. nested list
2. 1. Sameline
3. | table|

View File

@ -1 +1,11 @@
use super::error::Res;
use super::lesser_element::Paragraph;
use super::Context;
#[allow(dead_code)]
pub fn plain_list_item<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, Paragraph<'s>> {
todo!()
}