From edf94bb91d72cde90acd119dca8a15d651d5375a Mon Sep 17 00:00:00 2001 From: YISH Date: Mon, 15 Aug 2022 22:10:27 +0800 Subject: [PATCH] :art: fix html export template for pandoc 2.19 --- README.md | 2 +- manifest.json | 2 +- package.json | 2 +- src/export_command_templates.ts | 2 +- versions.json | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c8ec7c3..f5f1842 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Where `Markdown`、`Markdown (Hugo)`、`Html` will export and its media resource ## Installation -1. First install the latest `pandoc` (2.18+), and then add `pandoc` path to environment variable `PATH` or set absolute path of `pandoc` in the plugin setting view. +1. First install the latest `pandoc` (2.19+), and then add `pandoc` path to environment variable `PATH` or set absolute path of `pandoc` in the plugin setting view. See more details in [https://pandoc.org/installing.html](https://pandoc.org/installing.html)。 diff --git a/manifest.json b/manifest.json index a916fee..9805d27 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-enhancing-export", "name": "Obsidian Enhancing Export", - "version": "1.1.2", + "version": "1.1.3", "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", diff --git a/package.json b/package.json index 0ccf178..3a9eca1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-enhancing-export", - "version": "1.1.2", + "version": "1.1.3", "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": { diff --git a/src/export_command_templates.ts b/src/export_command_templates.ts index 00336ef..d7dd236 100644 --- a/src/export_command_templates.ts +++ b/src/export_command_templates.ts @@ -36,7 +36,7 @@ export default { name: 'Html', type: 'pandoc', arguments: - '-f markdown --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/math_block.lua" --self-contained --metadata title="${currentFileName}" -s -o "${outputPath}" -t html', + '-f markdown --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/math_block.lua" --embed-resources --standalone --metadata title="${currentFileName}" -s -o "${outputPath}" -t html', customArguments: '--mathjax="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg-full.js"', extension: '.html', }, diff --git a/versions.json b/versions.json index 2ed83a5..fd828a7 100644 --- a/versions.json +++ b/versions.json @@ -9,5 +9,6 @@ "1.0.11": "0.12.0", "1.1.0": "0.12.0", "1.1.1": "0.12.0", - "1.1.2": "0.12.0" + "1.1.2": "0.12.0", + "1.1.3": "0.12.0" } \ No newline at end of file