nolinks - speced/respec GitHub Wiki
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.
<pre class="nolinks">
const url = "https://example.com/data";
fetch(url); // https://example.com/data stays as text
</pre>- 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">