Fix example code in README

This commit is contained in:
Roberto Alsina 2024-08-19 12:58:02 -03:00
parent 3ebedec6c1
commit 76ef1fea41

View File

@ -63,7 +63,9 @@ require "tartrazine"
lexer = Tartrazine.lexer("crystal") lexer = Tartrazine.lexer("crystal")
theme = Tartrazine.theme("catppuccin-macchiato") theme = Tartrazine.theme("catppuccin-macchiato")
puts Tartrazine::Html.new.format(File.read(ARGV[0]), lexer, theme) formatter = Tartrazine::Html.new
formatter.theme = theme
puts formatter.format(File.read(ARGV[0]), lexer)
``` ```
## Contributing ## Contributing