Skip to main content

default_stylesheet

Function default_stylesheet 

Source
pub fn default_stylesheet(format: Option<&str>) -> Option<&'static str>
Expand description

The built-in XSLT stylesheet for an output format (logical embedded-resource name; Perl Config.pm L543-551). Returns None for a format with no default (e.g. xml), so a caller keeps --stylesheet / no post.

SINGLE SOURCE OF TRUTH shared by the CLI (bin/latexml_oxide.rs picks effective_stylesheet when --stylesheet is unset) and the library (crate::api::convert_to_html), so the two can never disagree on which sheet an html5/xhtml/epub job gets.