-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Scope
- Add
code_lang: Option<String>field toMdRenderer - Store language tag on
Event::Start(Tag::CodeBlock(Fenced(lang))) - Clear on
Event::End(TagEnd::CodeBlock) - In
Event::Textwhenin_code_block && code_lang.is_some(): callSyntaxHighlighter::highlight() - If
Some(spans)returned, push multiple spans instead of single flat span - If
None, fall back totheme.code_block(current behavior) - Preserve
" "prefix indentation for code lines
Acceptance criteria
- Fenced code blocks with known languages render with multiple colored spans
- Unknown languages fall back to flat
code_blockstyle - Unfenced code blocks unchanged
- Existing tests pass; new test for highlighted code block
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request