summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Wiesner <sebastian@swsnr.de>2019-08-03 08:08:55 +0200
committerSebastian Wiesner <sebastian@swsnr.de>2019-08-03 08:08:55 +0200
commit593039be9c557d9b5242c9d84e11a85e608628a3 (patch)
treed214e40ce55998438fe8819cddc10b0ec89118ad
parentf0b5fd080fb99d9a37a195758bb75994e788c815 (diff)
Use proper style for code spans
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 496b0fa..b39680f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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) => {