mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-10-22 06:15:11 +02:00
Add support for fenced code blocks (``` delimited) and inline `code` spans. Fenced blocks switch to a CODE_BLOCK state that applies the code style to all lines until the closing fence. Inline backtick pairs are detected in print_inline_code() which is called from urls() for non-URL text segments, preserving URL detection within code spans. Add the "code" style object configurable via stylesets, defaulting to palette index 5. Update all bundled stylesets accordingly. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Tristan Partin <tristan@partin.io>