Skip to content

Remove ShowAbbreviationTitle option#161

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/remove-showabbreviationtitle
Draft

Remove ShowAbbreviationTitle option#161
Copilot wants to merge 2 commits into
mainfrom
copilot/remove-showabbreviationtitle

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

DisplayOptions.ShowAbbreviationTitle let callers suppress the expansion that follows an AbbreviationInline, silently dropping part of the source Markdown. It shouldn't be configurable — the title is always rendered now.

  • DisplayOptions: drop the ShowAbbreviationTitle property, its Clone() assignment, and the cross-reference from the AbbreviationTitle doc comment.
  • ConsoleAbbreviationInlineRenderer: remove the conditional; always emit label ([style]text[/]) via the existing fluent chain.
  • Tests: delete RendererTests_AbbreviationTitleSuppressed. RendererTests_AbbreviationTitleTest continues to cover the styled expansion.
  • Changelog: entry added under Upcoming ChangesRenderers.

Breaking for any consumer that explicitly set ShowAbbreviationTitle = false — those assignments must be removed.

Co-authored-by: boxofyellow <54955040+boxofyellow@users.noreply.github.com>
Copy link
Copy Markdown
Owner

@boxofyellow boxofyellow left a comment

Choose a reason for hiding this comment

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

@copilot please address this comment

.WriteEscape(obj.Abbreviation.Text.ToString())
.AddInLine("[/])");
}
renderer
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@copilot Please follow https://github.com/boxofyellow/ConsoleMarkdownRenderer/blob/main/docs/code-style.md#file-and-code-placement, how that the this is single line, lets remove this class file and place it ConsoleObjectRenderers.cs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved into ConsoleObjectRenderers.cs and deleted the dedicated file in 474ea2c.

Co-authored-by: boxofyellow <54955040+boxofyellow@users.noreply.github.com>
Copilot AI requested a review from boxofyellow May 22, 2026 12:06
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.

2 participants