Skip to content

HTML -> PDF: SVG icons come out huge #10134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jgm opened this issue Aug 31, 2024 · 0 comments
Closed

HTML -> PDF: SVG icons come out huge #10134

jgm opened this issue Aug 31, 2024 · 0 comments
Labels

Comments

@jgm
Copy link
Owner

jgm commented Aug 31, 2024

% pandoc -o test.pdf https://katex.org

Result: huge icons on the page.
I'm not sure how to fix this, exactly. The browser is sizing the svg images to fit the containers they're in (buttons). But since pandoc isn't a browser, it doesn't have this size information. Perhaps we could have the heuristic of checking for classes like fa-* and downsizing?

@jgm jgm added the bug label Aug 31, 2024
@jgm jgm closed this as completed in 9933a41 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant