Skip to content

Commit

Permalink
transforms, util: strip rouge style, add lexers
Browse files Browse the repository at this point in the history
  • Loading branch information
artagnon committed Jun 27, 2024
1 parent 11c193a commit 3628ac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/clayoven/transforms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ module Clayoven::Claytext::Transforms
formatter = Rouge::Formatters::HTML.new()
lexer = (Util::ROUGE_LEXERS[fc.captures[0]]).new()
p.replace (formatter.format(lexer.lex p))
p.prop = Rouge::Themes::Base16::Solarized.mode(:light).render()
end
end,
# Images and notebooks of images: << [dims] ... >>
Expand Down
4 changes: 3 additions & 1 deletion lib/clayoven/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ module Clayoven::Claytext::Transforms::Util
"hs" => Rouge::Lexers::Haskell,
"rs" => Rouge::Lexers::Rust,
"coq" => Rouge::Lexers::Coq,
"cpp" => Rouge::Lexers::Cpp
"cpp" => Rouge::Lexers::Cpp,
"c" => Rouge::Lexers::C,
"llvm" => Rouge::Lexers::LLVM
}.freeze

# Do a roman to arabic conversion
Expand Down

0 comments on commit 3628ac3

Please sign in to comment.