The next-generation file converter. Open source, fully local* and free forever.
Merge branch 'main' of https://github.com/VERT-sh/VERT
JovannMC2af5651d19b6
diff --cc src/lib/converters/index.tsindex 43a78cb,2165207..45c5fba--- a/src/lib/converters/index.ts+++ b/src/lib/converters/index.ts@@@ -46,17 -42,4 +43,16 @@@ categories.image.formatscategories.docs.formats =converters.find((c) => c.name === "pandoc")- ?.formatStrings((f) => f.toSupported)- .filter((f) => f !== ".pdf") || [];- ?.formatStrings((f) => f.toSupported) || [];++ ?.formatStrings((f) => f.toSupported) || [];++export const byNative = (format: string) => {+ return (a: Converter, b: Converter) => {+ const aFormat = a.supportedFormats.find((f) => f.name === format);+ const bFormat = b.supportedFormats.find((f) => f.name === format);++ if (aFormat && bFormat) {+ return aFormat.isNative ? -1 : 1;+ }+ return 0;+ };+};