Skip to content

docs: enable markdownlint MD040 and tag all fenced code blocks#30

Closed
andreahlert wants to merge 1 commit into
apache:mainfrom
andreahlert:feat/doc-md040
Closed

docs: enable markdownlint MD040 and tag all fenced code blocks#30
andreahlert wants to merge 1 commit into
apache:mainfrom
andreahlert:feat/doc-md040

Conversation

@andreahlert

Copy link
Copy Markdown
Collaborator

Follow-up to #18. Flips MD040 to true and tags the 64 untagged fences across the tree.

Most fences ended up text (MCP call sketches, URL examples, dir trees, plain output). Three got html for HTML-comment markers and the <details> envelope, three markdown for the AI-disclosure block and rollup body samples, one yaml for the subagent return block in sync-security-issue.

One quirk worth flagging: allocate-cve/SKILL.md had a nested fence that needed the outer one promoted from 3 to 4 backticks so the inner 3-backtick block renders as an actual nested code block instead of breaking out of the outer one.

Test plan

  • prek run --all-files clean
  • npx markdownlint-cli2 "**/*.md" "#node_modules" "#.git" clean
  • Nested fence in allocate-cve/SKILL.md previewed on GitHub, renders as expected

Was generative AI tooling used to co-author this PR?
  • Yes

Follow-up to apache#18. Flips MD040 from `false` to `true` and tags the 64
previously untagged fences across the tree.

Most fences ended up `text` (MCP call sketches, URL examples, dir
trees, plain output, commit trailers). 3 got `html` for HTML-comment
idempotency markers and the <details> envelope, 3 `markdown` for the
AI-disclosure block and rollup body samples, 1 `yaml` for the
subagent return block in sync-security-issue.

One nested-fence case in allocate-cve/SKILL.md needed the outer
fence promoted from 3 to 4 backticks so the inner 3-backtick block
renders as an actual nested code block instead of breaking the outer
one.

Signed-off-by: André Ahlert <andre@aex.partners>
@potiuk potiuk closed this in #44 May 4, 2026
potiuk added a commit that referenced this pull request May 4, 2026
…sedes #30) (#44)

* docs: enable markdownlint MD040 and tag all fenced code blocks

Follow-up to #18. Flips MD040 from `false` to `true` and tags the 64
previously untagged fences across the tree.

Most fences ended up `text` (MCP call sketches, URL examples, dir
trees, plain output, commit trailers). 3 got `html` for HTML-comment
idempotency markers and the <details> envelope, 3 `markdown` for the
AI-disclosure block and rollup body samples, 1 `yaml` for the
subagent return block in sync-security-issue.

One nested-fence case in allocate-cve/SKILL.md needed the outer
fence promoted from 3 to 4 backticks so the inner 3-backtick block
renders as an actual nested code block instead of breaking the outer
one.

Signed-off-by: André Ahlert <andre@aex.partners>

* docs: extend MD040 tagging to skills added since #30

#30 was opened against an earlier tree state; the pr-management
skill family (lifted in #33, renamed to type-what-action in
#35) added 9 new skill supporting files with 20 untagged
fences that fail markdownlint MD040 once it's enabled.

This commit applies the same tagging convention #30 established
for the security family + tools to the new pr-management files:

  pr-management-triage/fetch-and-batch.md     1 fence
  pr-management-triage/comment-templates.md   2 fences  → markdown
  pr-management-triage/interaction-loop.md    4 fences  → text (UI mockups)
  pr-management-triage/workflow-approval.md   2 fences  → text (UI mockups)
  pr-management-stats/fetch.md                3 fences  → text (search queries)
  pr-management-stats/render.md               3 fences  → text (output samples)
  pr-management-stats/classify.md             3 fences  → text (pseudocode)
  pr-management-code-review/review-flow.md    1 fence   → text (CLI mockup)
  pr-management-code-review/prerequisites.md  1 fence   → text (HTTP error)

Most fences ended up `text` (the same catch-all #30's commit
message used for "MCP call sketches, URL examples, dir trees,
plain output"). Two `markdown` fences in
`pr-management-triage/comment-templates.md` because the
content is a markdown link / list item example that GitHub
should render as markdown.

prek run --all-files clean. MD040 reports zero violations
across the tree.

Generated-by: Claude Code (Claude Opus 4.7)

---------

Signed-off-by: André Ahlert <andre@aex.partners>
Co-authored-by: André Ahlert <andre@aex.partners>
@andreahlert andreahlert added the mode:cross-cutting Spans multiple modes label May 7, 2026
@andreahlert andreahlert deleted the feat/doc-md040 branch May 7, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mode:cross-cutting Spans multiple modes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant