@@ -55,7 +55,7 @@ fn parse<'a>(
5555 fn to_span(text: pulldown_cmark::CowStr) -> Span {
5656 use std::ops::Deref;
5757 Span::raw::<std::borrow::Cow<_>>(match text {
58− CowStr::Borrowed(s) => s.to_string().into(), // could retain borrow
58+ CowStr::Borrowed(s) => s.into(),
5959 CowStr::Boxed(s) => s.to_string().into(),
6060 CowStr::Inlined(s) => s.deref().to_owned().into(),
6161 })
@@ -179,7 +179,9 @@ fn parse<'a>(
179179 spans.push(Span::raw(" "));
180180 }
181181 Event::Rule => {
182− lines.push(Spans::from("---"));
182+ let mut span = Span::raw("---");
183+ span.style = code_style;
184+ lines.push(Spans::from(span));
183185 lines.push(Spans::default());
184186 }
185187 // TaskListMarker(bool) true if checked