Closed
Description
I'm finding that using commonmark:markdown_html()
injects many additional "\n" instead of terminating a <p>
tag.
Take this for example:
commonmark::markdown_html(
c(
"This is item one",
"This is item two"
)
)
#> [1] "<p>This is item one\nThis is item two</p>\n"
Created on 2025-06-15 with reprex v2.1.1
I would expect this to become <p>This is item one</p> <p>This is item two</p>
but instead there is a new line injected in between. Setting hardbreak = TRUE
only adds a <br />
where the first \n
is.
My expectation was that each element in the character vector would be parsed independently. Is there a way to accomplish this with the commonmark package?
Metadata
Metadata
Assignees
Labels
No labels