Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Mar 15, 2023
1 parent 6df92c4 commit e7f1fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ftd/src/executor/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ pub fn code(code: &str, ext: &str, theme: &str, doc_id: &str) -> ftd::executor::
.find_syntax_by_extension(ext)
.unwrap_or_else(|| SS.find_syntax_plain_text());

let theme = if let Some(theme) = TS.themes.get(theme).or(ts1().themes.get(theme)) {
let ts1 = ts1();
let theme = if let Some(theme) = TS.themes.get(theme).or(ts1.themes.get(theme)) {
theme
} else {
return Err(ftd::executor::Error::ParseError {
Expand Down

0 comments on commit e7f1fa6

Please sign in to comment.