Skip to content

Commit

Permalink
✨ Support export to typst
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish committed Apr 28, 2023
1 parent 383c0f0 commit 550e520
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 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.2.1",
"version": "1.3.0",
"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",
Expand Down
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.2.1",
"version": "1.3.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.",
"main": "dist/main.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions src/export_command_templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export default {
'-f markdown --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/markdown.lua" -V media_dir="${outputDir}/${outputFileName}.textbundle/assets" -s -o "${outputDir}/${outputFileName}.textbundle/text.md" -t commonmark_x-attributes',
extension: '.md',
},
'Typst': {
name: 'Typst',
type: 'pandoc',
arguments:
'-f markdown --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/markdown.lua" -s -o "${outputPath}" -t typst',
extension: '.typ',
},
'PDF': {
name: 'PDF',
type: 'pandoc',
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"1.1.9": "0.12.0",
"1.1.10": "0.12.0",
"1.2.0": "0.12.0",
"1.2.1": "0.12.0"
"1.2.1": "0.12.0",
"1.3.0": "0.12.0"
}

0 comments on commit 550e520

Please sign in to comment.