Expand description
Markdown post-processing pipeline (R1).
Applies a series of text transformations to improve markdown quality:
- Unicode normalization (non-breaking spaces, curly quotes, dashes)
- LaTeX formula spacing fixes for GitHub rendering
- Bold formatting cleanup
- Percent sign fix for GitHub
KaTeX
Based on reference implementation from: https://github.com/link-foundation/meta-theory/blob/main/scripts/download-article.mjs
Structs§
- Post
Process Options - Options for post-processing.
Functions§
- apply_
bold_ formatting_ fixes - Clean up bold formatting artifacts from HTML-to-markdown conversion.
- apply_
latex_ spacing_ fixes - Fix spacing around inline LaTeX formulas for GitHub rendering.
- apply_
percent_ sign_ fix - Fix percent sign in inline formulas for GitHub
KaTeXrendering. - apply_
unicode_ normalization - Normalize unicode characters for consistent rendering.
- post_
process_ markdown - Apply all post-processing transformations to markdown text.