Skip to content

Render C# and F# fenced examples as code - #156

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
RowletCC:fix/fence-language
Sep 21, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
RowletCC:fix/fence-language

Conversation

@RowletCC

Copy link
Copy Markdown
Contributor

C# and F# fenced examples are rendered as prose because the renderer's language identifier pattern excludes #. A c# example containing # example heading therefore becomes a document heading, and a following paragraph can end up inside an unintended code block.

Allow # in the existing single-token language identifier. This keeps C#/F# examples literal without changing fence delimiters, closing rules, or the treatment of unsupported multiword info strings.

Validation: the unchanged upstream fails three new regressions and passes the existing-language control. After the fix, all four new tests, the parser-progress regression, and four existing fence tests pass (9 total). Build, TypeScript no-emit checks, and Prettier checks pass. Tests cover backticks, tildes within a blockquote, an unterminated fence, and existing C++/Objective-C identifiers.

Submitted under the published $0.25 USD-equivalent reward per valid bug-fix PR, using the existing application and settlement conversation. Settlement remains native SOL on Solana mainnet, subject to acceptance and confirmation of the exact token amount. No payment is claimed as received.

@ralyodio
ralyodio merged commit 5ea35c7 into profullstack:master Sep 21, 2026
4 checks passed
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