Expand description
Post-processing pipeline API.
Provides a public interface to the LaTeXML post-processing pipeline
(Scan → Bibliography → CrossRef → Graphics → Split → MathML → XSLT → HTML5 fixups).
Used by both the latexml_oxide binary and the cortex_worker binary.
Structs§
- Post
Options - Options for the post-processing pipeline.
- Post
Outcome - Result of
run_post_processing_logged: the serialized HTML plus the post-phase log text and status code, mirroring PerlLaTeXML.pm’sconvert_post, which flushes the log AFTER post and folds the post status into the finalmax(core, post)verdict (L631-634).
Functions§
- default_
stylesheet - The built-in XSLT stylesheet for an output format (logical embedded-resource
name; Perl
Config.pmL543-551). ReturnsNonefor a format with no default (e.g.xml), so a caller keeps--stylesheet/ no post. - run_
post_ processing - Run the post-processing pipeline on in-memory XML output.
- run_
post_ processing_ from_ file - File-input variant of
run_post_processing. - run_
post_ processing_ from_ file_ logged - File-input variant of
run_post_processing_logged: parses the XML from disk via libxml2’s streaming reader rather than from an in-memoryString. Used for already-converted.xmlinputs, where slurping the file would keep a whole extra copy of a multi-hundred-MB document resident alongside the DOM. - run_
post_ processing_ logged - Run post-processing while capturing its log into a fresh thread-local
LOG_BUFFER.
Converter::convert()already flushed the core log into its own response, leaving the buffer unbound — so without re-binding here every post-phaseInfo!/Warn!/post_error(incl. a silent EPS→PNG failure) reaches stderr only and never the persisted--log/cortex.log. Perl’s singleflush_log()afterconvert_postsweeps up the post log for ALL consumers; this is the Rust equivalent, shared by thelatexml_oxideandcortex_workerbinaries so their logs reach parity. See SYNC_STATUS task 5.