r-lib / downlit

Syntax Highlighting and Automatic Linking
https://downlit.r-lib.org
Other
90 stars 22 forks source link

Bug with R6? #54

Closed maelle closed 4 years ago

maelle commented 4 years ago

In the code below I wouldn't expect get() to be linked.

downlit::highlight("x$get('get')")
#> [1] "<span class='k'>x</span><span class='o'>$</span><span class='nf'><a href='https://rdrr.io/r/base/get.html'>get</a></span>(<span class='s'>'get'</span>)"

Created on 2020-09-17 by the reprex package (v0.3.0.9001)

maelle commented 4 years ago

but I do expect it to be highlighted :-)