Use a Unicode default with project-level LaTeX compatibility

This commit is contained in:
gloamxun committed 2026-12-02 21:43:38 +08:00
1 parent 38a2a4a958
commit 81ac3ae321
11 files changed
+741 -126

No files matched your search

+6 -1
View File
@@ -87,8 +87,13 @@ impl PreviewCache {
)
})
.collect();
let filename = match staged.options.input_profile {
super::InputProfile::TeX8Bit => format!("{id}.preview"),
super::InputProfile::UnicodeScalar => format!("{id}.unicode-scalar.preview"),
super::InputProfile::XeTeX => format!("{id}.unicode.preview"),
};
Some(Self(Arc::new(CacheEntry {
path: runs.join(".cached-previews").join(format!("{id}.preview")),
path: runs.join(".cached-previews").join(filename),
key: key.finalize().into(),
originals,
})))