OptionalcrossFilePathByIndex: ReadonlyMap<string, string>Since the original PDF rendering function is not accessible, and patching it is potentially unstable, we make a markdown copy by replacing the markdown with HTML format with inline styles for PDF export to render correctly.
This is admittedly a workaround—not elegant, and somewhat crude— but it is effective and stable in most practical cases.
Main function to export markdown with all citations (equations, figures, callouts) replaced This is used for PDF export
Replace all citations in markdown with HTML inline format for PDF rendering