Skip to content

Commit

Permalink
Once again, fix stupid styling issues and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Jan 27, 2024
1 parent 2a593d9 commit 9ffac38
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion shared_data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ pre span, code {
font-family: "Maple Mono", monospace,monospace;
font-weight: lighter;
}
code {
pre, code {
background-color: var(--code-background);
}
code {
padding: 1px 6px 2px 6px;
border-radius: 4px;
}
Expand Down
2 changes: 1 addition & 1 deletion shared_data/src/md_to_html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn md_to_html(input: &str) -> String {
let mut highlighter = HighlightLines::new(syntax, theme);
let color = theme.settings.background.unwrap_or(Color::BLACK);
let lang = syntax.name.to_lowercase();
let mut output = format!(r#"<pre class="language-{lang}">\n<code class="language-{lang}">"#);
let mut output = format!(r#"<pre class="language-{lang}"><code class="language-{lang}">"#);

for line in LinesWithEndings::from(&to_highlight) {
// if we fail to highlight, it's kinda whatever
Expand Down

0 comments on commit 9ffac38

Please sign in to comment.