Skip to content

Z505: UNTAGGED_CODE_BLOCK

  • Severity: Error


    Penalty: 0.0 points | Category: general

  • Remediation & Opt-In


    Auto-Fixable: No | Opt-In: No


Rationale

This rule is emitted when a fenced code block (```) lacks a programming language specifier tag, preventing syntax highlighting in static site builds.


How to Fix

Inspect the flagged location in the Markdown file and update the content or configuration:

Bad (Triggers Z505)

<!-- BAD: Fenced code block without language tag -->
```
zenzic check all --strict
```

Good (Resolves Z505)

<!-- GOOD: Fenced code block with explicit language tag -->
```bash
zenzic check all --strict
```

Configuration

# Automatically insert text language tag for untagged code blocks
zenzic fix --only Z505

Reference

See the Finding Codes Index for finding code details.