Class: Typst::Html
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*options) ⇒ Html
constructor
A new instance of Html.
Methods inherited from Base
#bytes, #compile, #document, from_s, from_zip, #pages, #typst_args, #with_dependencies, #with_font_paths, #with_fonts, #with_inputs, #with_root, #write
Constructor Details
#initialize(*options) ⇒ Html
3 4 5 6 7 |
# File 'lib/formats/html.rb', line 3 def initialize(*) super(*) title = CGI::escapeHTML([:title] || File.basename([:file], ".*")) @compiled = HtmlDocument.new(Typst::_to_svg(*self.typst_args), title) end |