ropensci / postdoc

Simple HTML package documentation
Other
12 stars 1 forks source link

Escape bug with ]]> in code #3

Closed jeroen closed 1 year ago

jeroen commented 1 year ago

The oce package gives an error because the code contains (seemingly unescaped) ]]> text.

It comes from this page: help('as.tidem', package='oce', help_type='html') page. But afaict, R actually does escape it properly: the input html file contains ]]>. Not sure where this goes wrong.

jeroen commented 1 year ago

I think the problem is that prismjs does not escape ]]> because it is html, not xml. So we probably need to parse it as html in postdoc/prismjs.