mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 01:29:07 -05:00
- Fix format detection to handle both 'pdf' and 'latex' formats
- Change markdown link [text](url) to LaTeX \href{url}{text} format
- This prevents Pandoc from converting the link to \href{} command
- Ensures proper QR code and margin note generation in PDF output
The issue was that the format was detected as 'latex' instead of 'pdf',
causing the filter to fall back to a simple link instead of generating
the proper QR code and margin note structure.