From 242f5db4411d5a2c78af5f75e295e95d2babcdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Sun, 15 Sep 2024 13:09:50 +0200 Subject: [PATCH] fix: make example description consistent with example code --- docs/output-formats/html-basics.qmd | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/output-formats/html-basics.qmd b/docs/output-formats/html-basics.qmd index 9ec6a7b0aa..7a9b20eeff 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: