r-lib / downlit

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

Don't link inside `<summary>` elements #105

Closed gadenbuie closed 3 years ago

gadenbuie commented 3 years ago

Adds summary to the list of bad ancestors so that functions referenced in the disclosure <summary> element are not auto linked.

Technically, links are permitted content in the <summary> element, but they can be problematic. For example, they can interfere with users who click or tap the link when they intend to interact with the summary element to open or close the disclosure.

hadley commented 3 years ago

Thanks!