Skip to content

markdown: escape content of inline code spans#335

Merged
fingolfin merged 1 commit intomasterfrom
codex/inline-code-escaping
Mar 9, 2026
Merged

markdown: escape content of inline code spans#335
fingolfin merged 1 commit intomasterfrom
codex/inline-code-escaping

Conversation

@fingolfin
Copy link
Member

Escape XML-special characters in Markdown-style inline backtick
spans and convert them before paragraph and list handling so
literals such as and work correctly in .autodoc
files.

Refactor the inline-backtick logic into local Markdown helpers and
cover the behavior with focused misc tests.

Co-authored-by: Codex codex@openai.com

Escape XML-special characters in Markdown-style inline backtick
spans and convert them before paragraph and list handling so
literals such as <Log> and <List> work correctly in .autodoc
files.

Refactor the inline-backtick logic into local Markdown helpers and
cover the behavior with focused misc tests.

Co-authored-by: Codex <codex@openai.com>
@fingolfin fingolfin force-pushed the codex/inline-code-escaping branch from e821db1 to b398d49 Compare March 9, 2026 10:19
@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 96.87500% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.14%. Comparing base (95215df) to head (b398d49).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
gap/Markdown.gi 96.87% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #335      +/-   ##
==========================================
+ Coverage   91.05%   91.14%   +0.09%     
==========================================
  Files          13       13              
  Lines        2559     2587      +28     
==========================================
+ Hits         2330     2358      +28     
  Misses        229      229              
Files with missing lines Coverage Δ
gap/Markdown.gd 100.00% <ø> (ø)
gap/Markdown.gi 97.70% <96.87%> (+0.28%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fingolfin fingolfin changed the title markdown: handle inline code spans safely markdown: escape content of inline code spans Mar 9, 2026
@fingolfin fingolfin merged commit 6888e0c into master Mar 9, 2026
8 checks passed
@fingolfin fingolfin deleted the codex/inline-code-escaping branch March 9, 2026 10:22
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