[PR #530] Improve Code Quality #1100

Open
opened 2026-01-29 14:49:42 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/530

State: closed
Merged: Yes


This PR:

  • Compares strings using StringComparison.Ordinal or pattern matching to avoid culture differences
  • Writes chars, where possible, to avoid passing references
  • Eliminates a few allocations
  • Enables nullable in a few more places
  • Ensures CodeInline.Content is initialized by adding a constructor
  • Seals renderer classes to ensure they are not subclassed
**Original Pull Request:** https://github.com/xoofx/markdig/pull/530 **State:** closed **Merged:** Yes --- This PR: - Compares strings using StringComparison.Ordinal or pattern matching to avoid culture differences - Writes chars, where possible, to avoid passing references - Eliminates a few allocations - Enables nullable in a few more places - Ensures CodeInline.Content is initialized by adding a constructor - Seals renderer classes to ensure they are not subclassed
claunia added the pull-request label 2026-01-29 14:49:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1100