0

I am trying to understand if it is possible to insert the HTML title= attribute (not necessarily inside an <abbr> tag) within an RMarkdown document (e.g. a blog post written through blogdown)

From W3C: the title attribute specifies extra information about an element. The information is most often shown as a tooltip text when the mouse moves over the element.

The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.

Couldn't find anything regarding using in in RMarkdown tho

Mr Lister
  • 45,515
  • 15
  • 108
  • 150
  • 1
    If your main idea is to get more information when hoovering over the text, you can use [tippy](https://tippy.john-coene.com/) – J_F May 02 '20 at 17:00
  • well yes and no, my idea was to find a way to use this specific HTML attribute in RMarkdown. I didn't know tippy, but loading an entire package just for this seems an overkill. Thanks for the suggestion tho, I might use it in my next Shiny app – likeeatingpizza May 03 '20 at 13:13

1 Answers1

2

You can write raw HTML in Markdown. However, if you are using Hugo >= v0.60.0, raw HTML will be ignored by default. You need to set an option in your config file to enable it:

[markup.goldmark.renderer]
unsafe= true
Yihui Xie
  • 28,913
  • 23
  • 193
  • 419