A collection of Pandoc Lua filters for enhanced PDF book generation.
Handles emoji characters for LaTeX output with proper font switching.
Converts fenced code blocks to minted environments for better syntax highlighting.
Converts pipe tables to longtable format for better page wrapping.
Cleans up problematic characters and formatting issues.
Removes ANSI escape codes from content.
Fixes inline code styling issues with CJK characters.
Provides fallback handling for special symbols and characters.
These filters are automatically applied by the cli.py script. They are located in the filters/ directory and are applied in the correct order during PDF generation.
- Pandoc with Lua support
- LaTeX distribution with required packages (see main documentation)
Each filter serves a specific purpose in the PDF generation pipeline:
- emoji-passthrough.lua: Ensures proper emoji rendering with font switching
- minted-filter.lua: Provides enhanced syntax highlighting for code blocks
- table-wrap.lua: Improves table formatting and page breaks
- cleanup-filter.lua: Removes problematic characters that can break LaTeX compilation
- ansi-cleanup.lua: Strips ANSI escape sequences from content
- fix-lstinline.lua: Fixes inline code rendering issues with CJK characters
- symbol-fallback-filter.lua: Handles special symbols and provides fallbacks