From 2e140dcc8f7cd92b3417894a8693cda3af19f0e4 Mon Sep 17 00:00:00 2001 From: Jacob Lamb Date: Fri, 10 Nov 2023 11:40:33 -0800 Subject: [PATCH] More fixes (x2) --- .../docs/en/recipes/external-links.mdx | 36 +++++++++---------- .../docs/es/recipes/external-links.mdx | 34 +++++++++--------- .../docs/pt-br/recipes/external-links.mdx | 34 +++++++++--------- .../docs/zh-cn/recipes/external-links.mdx | 34 +++++++++--------- 4 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/content/docs/en/recipes/external-links.mdx b/src/content/docs/en/recipes/external-links.mdx index 37979312fec40..b1e2c7300caa7 100644 --- a/src/content/docs/en/recipes/external-links.mdx +++ b/src/content/docs/en/recipes/external-links.mdx @@ -16,25 +16,25 @@ Using a rehype plugin, you can identify and modify links in your Markdown files 1. Install the `rehype-external-links` plugin. - - - ```shell - npm install rehype-external-links - ``` - - - ```shell - pnpm add rehype-external-links - ``` - - - ```shell - yarn add rehype-external-links - ``` - - + + + ```shell + npm install rehype-external-links + ``` + + + ```shell + pnpm add rehype-external-links + ``` + + + ```shell + yarn add rehype-external-links + ``` + + -2. Import the plugin into your `astro.config.mjs` file. +2. Import the plugin into your `astro.config.mjs` file. Pass `rehypeExternalLinks` to the `rehypePlugins` array, along with an options object that includes a content property. Set this property's `type` to `text` if you want to add plain text to the end of the link. To add HTML to the end of the link instead, set the property `type` to `raw`. diff --git a/src/content/docs/es/recipes/external-links.mdx b/src/content/docs/es/recipes/external-links.mdx index 355f7a6084995..d4a3f0b96e605 100644 --- a/src/content/docs/es/recipes/external-links.mdx +++ b/src/content/docs/es/recipes/external-links.mdx @@ -16,23 +16,23 @@ Usando un plugin de rehype, puedes identificar y modificar los enlaces en tus ar 1. Instala el plugin `rehype-external-links`. - - - ```shell - npm install rehype-external-links - ``` - - - ```shell - pnpm add rehype-external-links - ``` - - - ```shell - yarn add rehype-external-links - ``` - - + + + ```shell + npm install rehype-external-links + ``` + + + ```shell + pnpm add rehype-external-links + ``` + + + ```shell + yarn add rehype-external-links + ``` + + 2. Importa el plugin en tu archivo `astro.config.mjs`. diff --git a/src/content/docs/pt-br/recipes/external-links.mdx b/src/content/docs/pt-br/recipes/external-links.mdx index 3424771ad5f5b..f04d9812e08a9 100644 --- a/src/content/docs/pt-br/recipes/external-links.mdx +++ b/src/content/docs/pt-br/recipes/external-links.mdx @@ -16,23 +16,23 @@ Usando um plugin rehype, você pode identificar e modificar links nos seus arqui 1. Instale o plugin `rehype-external-links`. - - - ```shell - npm install rehype-external-links - ``` - - - ```shell - pnpm add rehype-external-links - ``` - - - ```shell - yarn add rehype-external-links - ``` - - + + + ```shell + npm install rehype-external-links + ``` + + + ```shell + pnpm add rehype-external-links + ``` + + + ```shell + yarn add rehype-external-links + ``` + + 2. Importe o plugin no seu arquivo `astro.config.mjs`. diff --git a/src/content/docs/zh-cn/recipes/external-links.mdx b/src/content/docs/zh-cn/recipes/external-links.mdx index ab9afc2279377..b516ef16894ed 100644 --- a/src/content/docs/zh-cn/recipes/external-links.mdx +++ b/src/content/docs/zh-cn/recipes/external-links.mdx @@ -17,23 +17,23 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' 1. 安装 `rehype-external-links` 插件。 - - - ```shell - npm install rehype-external-links - ``` - - - ```shell - pnpm add rehype-external-links - ``` - - - ```shell - yarn add rehype-external-links - ``` - - + + + ```shell + npm install rehype-external-links + ``` + + + ```shell + pnpm add rehype-external-links + ``` + + + ```shell + yarn add rehype-external-links + ``` + + 2. 在你的 `astro.config.mjs` 配置文件中导入该插件。