Skip to content

Commit

Permalink
Little Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-brass committed Dec 3, 2020
1 parent f9eb3e2 commit e5b6a1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/rendering/src/markdown/codeblock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn get_hl_background(theme: &Theme) -> Color {

fn get_include_background(theme: &Theme) -> IncludeBackground {
IncludeBackground::IfDifferent(
theme.settings.background.unwrap_or(::syntect::highlighting::Color::WHITE),
theme.settings.background.unwrap_or(Color::WHITE),
)
}

Expand Down Expand Up @@ -141,7 +141,6 @@ impl<'config, 'fence_info> CodeBlock<'config> {
let repo =
SCOPE_REPO.lock().expect("A thread must have poisened the scope repo mutex.");
let mut html = String::new();
// TODO: Use something other than split_inclusive because it requires a nightly feature:
for line in LinesWithEndings::from(text) {
let tokens = parser.parse_line(line, self.syntax_set);
let mut prev_i = 0usize;
Expand Down

0 comments on commit e5b6a1f

Please sign in to comment.