We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I noticed that this div was causing a build to fail at the validation step with this diagnostic:
── Validating Fenced Divs ────────────────────────────────────────────────────── Error: Error in .x[[1]] : subscript out of bounds Calls: <Anonymous> ... get_linestart -> get_pos -> gsub -> is.factor -> <Anonymous> Execution halted
It turns out that the closing fence for this div was being interpreted as part of the previous list item:
https://github.com/MCMaurer/Rewrite-R-ecology-lesson/blob/b23e42e4a876ce4aff65cf38ad98753f72719eba/episodes/01-visualizing-ggplot.Rmd#L401-L412
Here's a simplified use case:
tmp <- tempfile() writeLines("text\n\n::: callout\n- list item\n - list item 2\n:::\n\n text", tmp) ep <- pegboard::Episode$new(tmp) ep$show() #> text #> #> ::: callout #> #> - list item #> - list item 2 #> ::: #> #> text ep$label_divs()$get_divs() #> $`div-1-callout` #> {xml_nodeset (0)}
Created on 2022-03-14 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered:
place newlines around div fences
a6e471b
This is related to carpentries/pegboard#84
add test for nested div tag
3f98f6f
This begins to address #84
No branches or pull requests
I noticed that this div was causing a build to fail at the validation step with this diagnostic:
It turns out that the closing fence for this div was being interpreted as part of the previous list item:
https://github.com/MCMaurer/Rewrite-R-ecology-lesson/blob/b23e42e4a876ce4aff65cf38ad98753f72719eba/episodes/01-visualizing-ggplot.Rmd#L401-L412
Here's a simplified use case:
Created on 2022-03-14 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: