Skip to content

Commit

Permalink
🐛 Fix export issue with paths containing spaces
Browse files Browse the repository at this point in the history
mokeyish committed Jul 5, 2022
1 parent adae2bb commit 39aea45
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-enhancing-export",
"name": "Obsidian Enhancing Export",
"version": "1.1.0",
"version": "1.1.1",
"minAppVersion": "0.12.0",
"description": "This is a enhancing export plugin for Obsidian. It allows to export to formats like Html, DOCX, ePub and PDF or Markdown(Hugo) etc.",
"author": "YISH",
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-enhancing-export",
"version": "1.1.0",
"version": "1.1.1",
"description": "This is a enhancing export plugin for Obsidian. It allows to export to formats like Html, DOCX, ePub and PDF or Markdown(Hugo) etc.",
"main": "dist/main.js",
"scripts": {
2 changes: 1 addition & 1 deletion src/exporto0o.ts
Original file line number Diff line number Diff line change
@@ -152,7 +152,7 @@ export async function exportToOo(

const cmd = cmdTpl.replace(/\${(.*?)}/g, (_, p1: string) => variables[p1 as keyof typeof variables]);

const args = await yargs(cmd.split(' ')).options({
const args = await yargs(cmd.match(/(?:[^\s"]+|"[^"]*")+/g)).options({
output: { type: 'string', alias: 'o' },
}).argv;
const actualOutputPath = args.output.startsWith('"') && args.output.endsWith('"')
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -7,5 +7,6 @@
"1.0.9": "0.12.0",
"1.0.10": "0.12.0",
"1.0.11": "0.12.0",
"1.1.0": "0.12.0"
"1.1.0": "0.12.0",
"1.1.1": "0.12.0"
}

0 comments on commit 39aea45

Please sign in to comment.