codingagentlinkbuilding.comby LinkBunny

Markdown nofollow recipes Docusaurus

Add rel="nofollow" to one link in Docusaurus

Write the link as an <a> tag with rel="nofollow". Docusaurus parses .md files as MDX by default, so the tag is JSX and reaches the built page as written.

  • Docusaurus 3.10.2
  • Node.js 24.1.0
  • Built on 10 November 2026

Write the link, then build

MDX reads the tag as JSX, so close it and quote the attribute values.

You write

docs/retry-failed-jobs.md
Record the job ID, attempt number and error. Keep the entries consistent. Logsift's <a href="https://logsift.example/guides/job-logs" rel="nofollow">guide to structured job logs</a> shows a format you can search later.

The build wrote

build/retry-failed-jobs/index.html
<p>Record the job ID, attempt number and error. Keep the entries consistent. Logsift&#x27;s <a href="https://logsift.example/guides/job-logs" rel="nofollow">guide to structured job logs</a> shows a format you can search later.</p>

Docusaurus escaped the apostrophe in Logsift's as &#x27; and left the link's attributes alone. It didn't add target or another rel value to this tag.

For comparison, the same page has a plain Markdown link to the same guide. The build wrote it like this:

build/retry-failed-jobs/index.html
<p>Plain Markdown link: <a href="https://logsift.example/guides/job-logs" target="_blank" rel="noopener noreferrer" class="">guide to structured job logs</a>.</p>

This one does have a rel: Docusaurus added target="_blank" and rel="noopener noreferrer" to the outside Markdown link. Neither value is nofollow.

Gotcha

A rel attribute doesn't mean nofollow

A check that only asks whether a link has a rel attribute passes the plain Markdown link. Look for the nofollow value itself. The built HTML link audit reads each rel value and flags this link.

The Docusaurus docs list markdown.format with a default of 'mdx'. If your config sets it to 'detect', .md files use the plain Markdown parser instead, which this test didn't cover.

You write

docs/retry-failed-jobs.md
Plain Markdown link: [guide to structured job logs](https://logsift.example/guides/job-logs).

The build wrote

build/retry-failed-jobs/index.html
<p>Plain Markdown link: <a href="https://logsift.example/guides/job-logs" target="_blank" rel="noopener noreferrer" class="">guide to structured job logs</a>.</p>

Check the built page before you merge

Run this against the built file. The output below is what the command printed for the test project.

The command prints two tags: the JSX link with rel="nofollow", then the Markdown link with rel="noopener noreferrer".

To see every outside link on a page with its anchor text and rel value, paste the built file into the built HTML link audit. It runs in your browser and uploads nothing.

Command
grep -o '<a [^>]*logsift[^>]*>' build/retry-failed-jobs/index.html
Output
<a href="https://logsift.example/guides/job-logs" rel="nofollow">
<a href="https://logsift.example/guides/job-logs" target="_blank" rel="noopener noreferrer" class="">

Sources and what was tested

The test project is one Markdown page with one paragraph, built locally with the versions listed at the top. Every HTML excerpt on this page is copied from that build without edits. Other versions, and plugins that rewrite links, can build different HTML, so check your own output.

Using another generator? See all six recipes.

Next steps with LinkBunny

Placing a LinkBunny exchange link?

LinkBunny exchange links must use nofollow. Your coding agent can follow this recipe when it places one, and the first exchange is free for one site.

Read the agent docs

After the deploy, check the live page

LinkBunny's nofollow link checker fetches a public page and lists each link on it with its rel value, so you can confirm the link survived the deploy.

Open the nofollow link checker