fix download

This commit is contained in:
C4illin 2024-05-20 00:56:40 +02:00
parent 13cc37d5a2
commit 61a75c6d36
13 changed files with 198 additions and 27 deletions

View file

@ -73,8 +73,12 @@ export async function mainConverter(
const possibleConversions: { [key: string]: string[] } = {};
for (const from of [...propertiesImage.from, ...propertiesPandoc.from]) {
possibleConversions[from] = [...propertiesImage.to, ...propertiesPandoc.to];
for (const from of propertiesImage.from) {
possibleConversions[from] = propertiesImage.to;
}
for (const from of propertiesPandoc.from) {
possibleConversions[from] = propertiesPandoc.to;
}
export const getPossibleConversions = (from: string): string[] => {
@ -85,4 +89,4 @@ export const getPossibleConversions = (from: string): string[] => {
export const getAllTargets = () => {
return [...propertiesImage.to, ...propertiesPandoc.to];
};
};