diff options
| author | 2021-08-16 20:44:46 +0000 | |
|---|---|---|
| committer | 2021-08-16 20:44:46 +0000 | |
| commit | 24a40bee6358d6732e20dc0e131089f8a42b704d (patch) | |
| tree | e13b9adddbcbda4395f0b83624bfb355109f6ab0 /docs/src | |
| parent | 78b5bde14c167b289a20b479d4fa4790eb9165aa (diff) | |
| download | astro-24a40bee6358d6732e20dc0e131089f8a42b704d.tar.gz astro-24a40bee6358d6732e20dc0e131089f8a42b704d.tar.zst astro-24a40bee6358d6732e20dc0e131089f8a42b704d.zip | |
[ci] yarn format
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/pages/reference/api-reference.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index 2f73cb30c..dfa52763a 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -76,13 +76,13 @@ const path = Astro.site.pathname;  `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder. -Astro *does not* resolve relative links within HTML, such as images: +Astro _does not_ resolve relative links within HTML, such as images:  ```html  <img src="../images/penguin.png" />  ``` -The above will be sent to the browser as-is and the browser will resolve it relative to the current __page__. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`: +The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`:  ```astro  <img src={Astro.resolve('../images/penguin.png')} /> | 
