diff --git a/docs/output-formats/html-basics.qmd b/docs/output-formats/html-basics.qmd index 9ec6a7b0a..7a9b20eef 100644 --- a/docs/output-formats/html-basics.qmd +++ b/docs/output-formats/html-basics.qmd @@ -326,19 +326,19 @@ format: By default external links (i.e. links that don't target the current site) receive no special visual adornment or navigation treatment (the current page is navigated). You can use the following options to modify this behavior: -+---------------------------+--------------------------------------------------------------------------------------------------------------------+ -| Option | Description | -+===========================+====================================================================================================================+ -| `link-external-icon` | `true` to show an icon next to the link to indicate that it's external (e.g. [external](#){.external}). | -+---------------------------+--------------------------------------------------------------------------------------------------------------------+ -| `link-external-newwindow` | `true` to open external links in a new browser window or tab (rather than navigating the current tab). | -+---------------------------+--------------------------------------------------------------------------------------------------------------------+ -| `link-external-filter` | A regular expression that can be used to determine whether a link is an internal link. For example | -| | | -| | `^(?:http:|https:)\/\/www\.quarto\.org\/custom` | -| | | -| | will treat links that start with http://www.quarto.org as internal links (and others will be considered external). | -+---------------------------+--------------------------------------------------------------------------------------------------------------------+ ++---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Option | Description | ++===========================+================================================================================================================================================================+ +| `link-external-icon` | `true` to show an icon next to the link to indicate that it's external (e.g., [external](#){.external}). | ++---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `link-external-newwindow` | `true` to open external links in a new browser window or tab (rather than navigating the current tab). | ++---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `link-external-filter` | A regular expression that can be used to determine whether a link is an internal link. For example | +| | | +| | `^(?:http:|https:)\/\/www\.quarto\.org\/custom` | +| | | +| | will treat links that start with `http://www.quarto.org/custom` or `https://www.quarto.org/custom` as internal links (and others will be considered external). | ++---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ External links are identified either using the `site-url` (if provided) or using the `window.host` if no `site-url` or `link-external-filter` is provided. For example, here we enable both options and a custom filter: