Identify a problem.
This commit is contained in:
parent
fbdf40fed0
commit
fef5841713
1
build.rs
1
build.rs
@ -72,7 +72,6 @@ fn is_expect_fail(name: &str) -> Option<&str> {
|
|||||||
match name {
|
match name {
|
||||||
"drawer_drawer_with_headline_inside" => Some("Apparently lines with :end: become their own paragraph. This odd behavior needs to be investigated more."),
|
"drawer_drawer_with_headline_inside" => Some("Apparently lines with :end: become their own paragraph. This odd behavior needs to be investigated more."),
|
||||||
"element_container_priority_footnote_definition_dynamic_block" => Some("Apparently broken begin lines become their own paragraph."),
|
"element_container_priority_footnote_definition_dynamic_block" => Some("Apparently broken begin lines become their own paragraph."),
|
||||||
"keyword_affiliated_keyword" => Some("Affiliated keywords would have to be implemented first."),
|
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,7 @@ use crate::init_tracing::shutdown_telemetry;
|
|||||||
use ::organic::parser::document;
|
use ::organic::parser::document;
|
||||||
mod init_tracing;
|
mod init_tracing;
|
||||||
|
|
||||||
// const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
||||||
const TEST_DOC: &'static str = "foo bar baz\n\nlorem ipsum";
|
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
init_telemetry()?;
|
init_telemetry()?;
|
||||||
|
@ -36,6 +36,7 @@ pub fn element<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str,
|
|||||||
alt((non_paragraph_matcher, paragraph_matcher))(input)
|
alt((non_paragraph_matcher, paragraph_matcher))(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tracing::instrument(ret, level = "debug")]
|
||||||
pub fn paragraph_element<'r, 's>(
|
pub fn paragraph_element<'r, 's>(
|
||||||
context: Context<'r, 's>,
|
context: Context<'r, 's>,
|
||||||
input: &'s str,
|
input: &'s str,
|
||||||
@ -53,6 +54,8 @@ pub fn paragraph_element<'r, 's>(
|
|||||||
|
|
||||||
Ok((remaining, element))
|
Ok((remaining, element))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tracing::instrument(ret, level = "debug")]
|
||||||
pub fn non_paragraph_element<'r, 's>(
|
pub fn non_paragraph_element<'r, 's>(
|
||||||
context: Context<'r, 's>,
|
context: Context<'r, 's>,
|
||||||
input: &'s str,
|
input: &'s str,
|
||||||
|
@ -1 +1,8 @@
|
|||||||
%%(foo)
|
#+name: foo
|
||||||
|
#+caption: bar
|
||||||
|
#+caption: baz
|
||||||
|
[[file:lorem/ipsum.png]]
|
||||||
|
|
||||||
|
#+name: cat
|
||||||
|
#+caption: dog
|
||||||
|
[[file:lorem/ipsum.png]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user