Skip to content

Z505: UNTAGGED_CODE_BLOCK

Severity: warning Penalty: 1.0 point Category: content Auto-fixable: Yes

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.