Coder Social home page Coder Social logo

pxammaxp / obsidian-enhancing-export Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mokeyish/obsidian-enhancing-export

0.0 0.0 0.0 719 KB

This is an enhancing export plugin base on Pandoc for Obsidian (https://obsidian.md/ ). It's allow you to export to formats like Markdown、Markdown (Hugo https://gohugo.io/ )、Html、docx、Latex etc.

License: MIT License

JavaScript 0.41% Lua 45.75% TypeScript 36.97% CSS 0.04% TeX 16.83%

obsidian-enhancing-export's Introduction

Obsidian Enhancing Export Plugin

GitHub release (latest by date including pre-releases) Obsidian Downloads

English | 中文

This is an enhancing export plugin base on Pandoc for Obsidian (https://obsidian.md/). It's allow you to export to formats like Markdown,Markdown (Hugo),HTML,docx,Latex etc.

Where Markdown,Markdown (Hugo),HTML will export and its media resource together.

Note: Markdown,Markdown (Hugo),HTML are tested in Mac OS, Windows, and Linux as I used it for myself, others are not tested well.

Ads: You might like my other plugins 🤪

Screen shot

  • Export view,click on Export to... on file menu.

  • Setting view

Installation

  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

  2. Search obsidian-enhancing-export in the community plugins of obsidian, and install it.

Customize export commands

You can customize your export command by yourself, click add in the plugin setting view and then choose template custom to add new custom configuration.

Variables

You can use ${variables} in custom export command, their values are:

Key Value
${outputPath} Output file path after export. For example, if your export to location /User/aaa/Documents/test.pdf, then ${outputDir} will be replace that path.
${outputDir} Output directory of saved exported file,It will be /User/aaa/Documents in above case.
${outputFileName} File name (without extension) of the saved exported file. It will be test in above case.
${outputFileFullName} File name (with extension) of the saved exported file. It will be test.pdf in above case.
${currentPath} Path of currently edited file. For example, if your are editing /User/aaa/Documents/readme.md, the the value will be /User/aaa/Documents/readme.md.
${currentDir} Current directory of currently edited file, It will be/User/aaa/Documents in above case.
${currentFileName} Filename without extension of currently edited file, It will be readme in above case.
${currentFileFullName} Filename with extension of currently edited file. It will be readme.md in above case.
${vaultDir} The obsidian current vaultDir.
${attachmentFolderPath} The attachmentFolderPath of Obsidian.
Others variables You can use keyword: value in YAML Front Matter, then use ${metadata.keyword}

Related resources

Finally

  • Welcome to provide more command templates to here.
  • Feel free to file an issue for any questions.

obsidian-enhancing-export's People

Contributors

mokeyish avatar github-actions[bot] avatar universvm avatar skrobul avatar thefermi0n avatar banus avatar luckman212 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.