Repository navigation
fix(converter): recognize .typ as Typst input and output - #32
Merged
Merged
Conversation
Typst files use the .typ extension, but only .typst was recognized, so .typ -> pdf failed with "No conversion path". Normalize .typ to the typst node, read it with pandoc's typst reader, and write Typst output as .typ.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Typst files use the
.typextension, but the converter only recognized.typst. Dropping a real Typst file failed with "No conversion path from .typ to pdf".Changes
normalize_extmapstyp→typst, so detection and multi-hop routing accept.typ.typst compile) normalizes the input extension first, so.typtakes it..typwith itstypstreader..typ(not.typst), so the result opens in Typst tooling and converts back.Testing
.typdetection,find_path("typ", "pdf"), the pandoc reader mapping, and the output extension. 128 unit tests plus the CLI end-to-end tests pass. clippy-D warningsand fmt are clean..typ→ pdf works, and CJK text renders..typ, and that file converts back to pdf..typ→ md works.mainafter fix(pdf): auto-install typst on Linux/Windows, render CJK text in PDFs #30.🤖 Generated with Claude Code