lib/bhook/theme.rb in bhook-0.1.6 vs lib/bhook/theme.rb in bhook-0.2.0
- old
+ new
@@ -11,11 +11,13 @@
@after_h1_template = T.let(File.read(File.join(theme_path, '_after_h1.erb')), String)
strategy = ->(binding_instance) { ERB.new(@after_h1_template, trim_mode: '-').result(binding_instance) }
@after_h1_strategy = T.let(strategy, T.proc.params(binding_instance: Binding).returns(String))
end
- sig { params(md: String, src_file_sha: T.nilable(String),
- src_file_date: T.nilable(String), file_url: T.nilable(String)).returns(String) }
+ sig do
+ params(md: String, src_file_sha: T.nilable(String),
+ src_file_date: T.nilable(String), file_url: T.nilable(String)).returns(String)
+ end
def render_page(md, src_file_sha, src_file_date, file_url)
src_title = T.let('', String)
doc = Kramdown::Document.new(md)
output, warnings = Converter::Html.convert(doc.root, doc.options.merge(