DOC-6360 make sure command lists and code examples appear correctly in .md pages#2896
Merged
andy-stark-redis merged 11 commits intomainfrom Mar 18, 2026
Merged
DOC-6360 make sure command lists and code examples appear correctly in .md pages#2896andy-stark-redis merged 11 commits intomainfrom
andy-stark-redis merged 11 commits intomainfrom
Conversation
Contributor
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
dwdougherty
approved these changes
Mar 17, 2026
Collaborator
dwdougherty
left a comment
There was a problem hiding this comment.
LGTM. Just one comment: I don't see the API method information in the html.md file. Maybe that's by design.
I'm in a good mood this morning, so this one is on the house. :)
Contributor
Author
|
@dwdougherty Thanks, I'll have a look at that (I don't think it's by design but I'll check). |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Contributor
Author
|
Finally! Domo arigato, Mr Bugboto. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The shortcodes for the new command lists in the data type pages, some of the code examples and multitabs were not being handled correctly for the Markdown output (so they appeared in the output files as shortcodes). Now fixed, so if you look at the
GETpage, you should see the command list (as a table) and the examples and multitabs without any shortcodes.Another fiver at the ready, btw :-)
Note
Medium Risk
Touches core Hugo templates/partials that generate
.mdoutputs, so regressions could affect many pages’ rendered content and metadata, though changes are limited to documentation rendering logic.Overview
Fixes Markdown export rendering so pages no longer leak Hugo shortcodes into the generated
.mdoutput. Thesingle.md/section.mdpipeline now handles escaped shortcode forms, runs additional expansion passes forcommand-groupandmultitabs, and only strips remaining shortcodes after unescaping entities (including+to+).Replaces TOC generation from
toc-json-regex.htmlto a newtoc-from-markdown.htmlthat derives##/###headings directly from.RawContent. Updatesmarkdown-code-examples.htmlto better normalize code-fence languages and to support self-closingclients-exampleshortcodes, emitting fully expanded, AI-friendly Markdown sections.Written by Cursor Bugbot for commit 997940a. This will update automatically on new commits. Configure here.