nolinks - speced/respec GitHub Wiki

.nolinks

Disables automatic URL hyperlinking within a <pre> element. When Markdown is used, ReSpec auto-links URLs — this class prevents that for code blocks where you don't want bare URLs turned into hyperlinks.

Usage

<pre class="nolinks">
const url = "https://example.com/data";
fetch(url); // https://example.com/data stays as text
</pre>

Notes

  • Only affects automatic URL detection — explicit <a href> links are unaffected
  • Commonly used with example code that contains URLs as string literals
  • Can be combined with a language class: <pre class="js nolinks">
⚠️ **GitHub.com Fallback** ⚠️