Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: javascript
jsxtextux
Ensure spacing around inline anchors in text
When an anchor follows plain text in a paragraph, add an explicit space (wrap text in a span with a trailing space or add it to the anchor) so words don't run together; and avoid trailing separators after the last item.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codejsx
| 1 | Kilde: Meteorologisk institutt <a href='...'>met.no</a> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejsx
| 1 | Kilde: Meteorologisk institutt{' '}<a href='...'> met.no</a> |
Explanation (EN)
Objašnjenje (HR)