codingagentlinkbuilding.comby LinkBunny

Markdown nofollow recipes Jekyll

Add rel="nofollow" to one link in Jekyll Markdown

Keep the Markdown link and put {:rel="nofollow"} right after the closing parenthesis. kramdown, Jekyll's default Markdown renderer, adds the attribute to that one link.

  • Jekyll 4.4.1
  • kramdown 2.5.2
  • Ruby 3.0.3
  • Built on 10 November 2026

Write the link, then build

kramdown calls this a span inline attribute list, or span IAL. It goes directly after the link, with nothing in between.

You write

blog/retry-failed-jobs.md
Record the job ID, attempt number and error. Keep the entries consistent. Logsift's [guide to structured job logs](https://logsift.example/guides/job-logs){:rel="nofollow"} shows a format you can search later.

The build wrote

_site/blog/retry-failed-jobs/index.html
<p>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.</p>

kramdown turned the apostrophe in Logsift's into a curly one. The link attributes came through as written. An inline <a> tag with rel="nofollow" also works in Jekyll; the test page has one, which is why the check below prints an extra line.

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

_site/blog/retry-failed-jobs/index.html
<p>Plain Markdown link: <a href="https://logsift.example/guides/job-logs">guide to structured job logs</a>.</p>

Markdown link syntax, [text](url), has nowhere to put a rel, so the plain link has none.

Gotcha

A space before the brace prints the attributes as text

The kramdown docs say a span IAL has to come directly after the element, with no character in between, or it's ignored. In this Jekyll build, the link with a space lost its rel, and the braces were printed on the page as text, with curly quotes.

You write

blog/ial-gotcha.md
With a space: Logsift's [guide to structured job logs](https://logsift.example/guides/job-logs) {:rel="nofollow"} shows a format.

The build wrote

_site/blog/ial-gotcha/index.html
<p>With a space: Logsift’s <a href="https://logsift.example/guides/job-logs">guide to structured job logs</a> {:rel=”nofollow”} shows a format.</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 three tags: the IAL link and the inline tag, both with rel="nofollow", then the plain Markdown link.

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[^>]*>' _site/blog/retry-failed-jobs/index.html
Output
<a href="https://logsift.example/guides/job-logs" rel="nofollow">
<a href="https://logsift.example/guides/job-logs" rel="nofollow">
<a href="https://logsift.example/guides/job-logs">

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