Closed digitalmoksha closed 1 year ago
Ok, located where this is happening. The xrender
method adds slash to self-closing tags in order to be compatible with CommonMark tests, and it's called explicitly in those tests.
The command line uses render
as opposed to xrender
.
xrender
is public, so if someone wants that behavior they can call it.
I don't understand how some tests are passing. For example
https://github.com/rlidwka/markdown-it.rs/blob/eb5459039685d19cefd0361859422118d08d35d4/tests/commonmark.rs#L6446-L6453
We're expecting the output to contain
<br />
. However usingcargo run
on the input, I get the outputwhich outputs a
<br>
. I must be missing something obvious, becausecargo test
passes.