diff options
author | Sebastian Wiesner <sebastian@swsnr.de> | 2019-08-03 08:08:55 +0200 |
---|---|---|
committer | Sebastian Wiesner <sebastian@swsnr.de> | 2019-08-03 08:08:55 +0200 |
commit | 593039be9c557d9b5242c9d84e11a85e608628a3 (patch) | |
tree | d214e40ce55998438fe8819cddc10b0ec89118ad | |
parent | f0b5fd080fb99d9a37a195758bb75994e788c815 (diff) |
Use proper style for code spans
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -477,7 +477,8 @@ fn write_event<'io, 'c, 'l, W: Write>( Ok(ctx) } Code(code) => { - ctx.write_highlighted(code)?; + // Inline code + ctx.write_styled(&ctx.style.current.fg(Colour::Yellow), code)?; Ok(ctx) } Text(text) => { |