Skip to content

Commit

Permalink
More fixes (x2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Lamb committed Nov 10, 2023
1 parent 0456857 commit 2e140dc
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 69 deletions.
36 changes: 18 additions & 18 deletions src/content/docs/en/recipes/external-links.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>

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`.

Expand Down
34 changes: 17 additions & 17 deletions src/content/docs/es/recipes/external-links.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>

2. Importa el plugin en tu archivo `astro.config.mjs`.

Expand Down
34 changes: 17 additions & 17 deletions src/content/docs/pt-br/recipes/external-links.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ Usando um plugin rehype, você pode identificar e modificar links nos seus arqui

1. Instale o plugin `rehype-external-links`.

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>

2. Importe o plugin no seu arquivo `astro.config.mjs`.

Expand Down
34 changes: 17 additions & 17 deletions src/content/docs/zh-cn/recipes/external-links.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'

1. 安装 `rehype-external-links` 插件。

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install rehype-external-links
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add rehype-external-links
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add rehype-external-links
```
</Fragment>
</PackageManagerTabs>

2. 在你的 `astro.config.mjs` 配置文件中导入该插件。

Expand Down

0 comments on commit 2e140dc

Please sign in to comment.