Pagedown: How to remove urls inserted after links?

Created on 24 Mar 2019  路  1Comment  路  Source: rstudio/pagedown

Based on other R Markdown outputs, I would expect that tag would read as 'tag' in the new document. The full url is still shown in the rendered document (see html_paged example in Readme).

question

Most helpful comment

The full url is still shown in the rendered document

This is the expected behaviour in pagedown::html_paged documents.
The motivation is detailed in the documentation, see section 4.3 _Links_.

If you want to get rid off these urls, please insert this CSS rule in your documents:

a[href^="http"]:not([class="uri"])::after {
  content: "";
}

Therefore, the urls will not be printed (I still don't understand the need of using links in this context).

>All comments

The full url is still shown in the rendered document

This is the expected behaviour in pagedown::html_paged documents.
The motivation is detailed in the documentation, see section 4.3 _Links_.

If you want to get rid off these urls, please insert this CSS rule in your documents:

a[href^="http"]:not([class="uri"])::after {
  content: "";
}

Therefore, the urls will not be printed (I still don't understand the need of using links in this context).

Was this page helpful?
0 / 5 - 0 ratings