diff --git a/src/formatters/html.cr b/src/formatters/html.cr index ec39e46..cb33d89 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -34,7 +34,7 @@ module Tartrazine @weight_of_bold : Int32 = 600) end - def format(text : String, lexer : Lexer, io : IO) : Nil + def format(text : String, lexer : Lexer, io : IO?) : String? outp = io.nil? ? String::Builder.new("") : io pre, post = wrap_standalone outp << pre if standalone?