Skip to content

Normalize Markdown help example indentation#421

Merged
PrzemyslawKlys merged 4 commits into
mainfrom
codex/help-markdown-code-visuals
Jun 6, 2026
Merged

Normalize Markdown help example indentation#421
PrzemyslawKlys merged 4 commits into
mainfrom
codex/help-markdown-code-visuals

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

Summary

  • normalize incidental indentation in generated Markdown help example code fences
  • preserve normal PowerShell block indentation while removing XML/MAML formatting drift
  • add a focused regression test for multi-line examples with a PS> introduction

Root cause

Generated help can carry XML/MAML indentation into DocumentationExampleHelp.Code. MarkdownHelpWriter rendered that code verbatim and then prefixed the first line with PS> , which made following lines appear over-indented in GitHub diffs and rendered Markdown.

Validation

  • dotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release --filter "FullyQualifiedName~MarkdownHelpWriterTests" --no-restore
  • dotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release --filter "FullyQualifiedName~DocumentationGenerationTests|FullyQualifiedName~MarkdownHelpWriterTests" --no-restore
  • git diff --check

Note: I also started the full PowerForge.Tests project, but stopped it after several silent minutes. The focused documentation tests covering this renderer path passed.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 639e7a36c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread PowerForge/Services/Documentation/MarkdownHelpWriter.cs
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f71177f2d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread PowerForge/Services/Documentation/MarkdownHelpWriter.cs Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5163db26bc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread PowerForge/Services/Documentation/MarkdownHelpWriter.cs Outdated
@PrzemyslawKlys PrzemyslawKlys merged commit e261d23 into main Jun 6, 2026
6 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the codex/help-markdown-code-visuals branch June 6, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant