fix download
This commit is contained in:
parent
13cc37d5a2
commit
61a75c6d36
13 changed files with 198 additions and 27 deletions
|
|
@ -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];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue