class
Markd::Pdf::Renderer
- Markd::Pdf::Renderer
- Reference
- Object
Defined in:
pdf_renderer.crConstructors
Instance Method Summary
-
#add_css(css : String) : Nil
Layer extra CSS on top of the style (later layers win on equal specificity, like repeated --css flags in the CLI).
- #base_dir : String
- #code_theme : String?
-
#css : String
The complete stylesheet this renderer uses: the built-in style, then the theme (when set), then user layers — each later block winning on equal specificity.
- #css_layers : Array(String)
- #footer : String
- #header : String
- #html_input : Bool
- #hyphenate : Bool
- #language : String
- #margin_mm : Float64
- #options : Markd::Options
- #page_size : String
- #pageless : Bool
-
#render(source : String, output_path : String) : Int32
Render markdown — or a complete HTML document — to output_path.
- #style : String
- #theme : String?
Constructor Detail
Instance Method Detail
def add_css(css : String) : Nil
#
Layer extra CSS on top of the style (later layers win on equal specificity, like repeated --css flags in the CLI).
def css : String
#
The complete stylesheet this renderer uses: the built-in style, then the theme (when set), then user layers — each later block winning on equal specificity.
def render(source : String, output_path : String) : Int32
#
Render markdown — or a complete HTML document — to output_path. Returns the page count; raises Markd::Pdf::Error on failure.