Closed jpcaveiro closed 2 months ago
This behavior comes from Pandoc which parses * 2.
as a bullet list containing an ordered list.
» echo '* 2.' | pandoc -t native
[ BulletList
[ [ OrderedList ( 2 , Decimal , Period ) [ [] ] ] ]
]
You need backslash escape to avoid the behavior.
» echo '* 2\.' | pandoc -t native
[ BulletList
[ [ OrderedList ( 2 , Decimal , Period ) [ [] ] ] ]
]
Just for the next time you face unexpected behaviors with markdown syntax, I would recommend inspect Pandoc's behavior. knitr only deals with chunks and inline chunks, not with markdown syntaxes in general.
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.