autolink_html: Automatic link references and articles in an HTML package
Description
The autolinker is built around two XPath expressions:
//pre[contains(@class, 'r')]:
this finds all <div>s with class sourceCode and r. The contents
must be syntax-highlighted using pygments.
(This is default in rmarkdown::html_document() when theme = NULL.)
.//code[count(*) = 0]: this finds all <code> that contain only
text (and no other tags).