From: MJ <mj.design.thinks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Obsidian plugin attachemnt folder
Date: Tue, 21 Mar 2023 08:52:25 -0700 (PDT) [thread overview]
Message-ID: <60916db2-8ccd-4758-a0e4-d86d03016570n@googlegroups.com> (raw)
In-Reply-To: <7e8595c5-c527-493d-984a-b7d69d145d53n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2938 bytes --]
I am successfully using the [Obsidian Enhancing
Export](https://github.com/mokeyish/obsidian-enhancing-export) to export
notes using pandoc to HTML, DOCX, and PDF.
The plugin preferences include default arguments that point to the Obsidian
attachment folder using `--resource-path.` You can also add your own extra
arguments to use extenstions, filters, or custom templates.
Here are the default arguments for exporting to 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
```
Note there is also a preference in Files & Links in Obsidian that will
format inserted images to `[[Wikilinks]]` format, which will not work with
pandoc. Disabling this option will use the normal image markup
`![](/path/to/image.png)`.
Hope this helps.
[image: Screen Shot 2023-03-21 at10.49.33 AM.png]
On Monday, March 20, 2023 at 12:50:27 PM UTC-5 Johan Lijffijt wrote:
> I tried this in many different ways but it does not seem to work.
> Added this to the option "extra pandoc arguments" on the obsidin plugin
> Do not see an example how to refer to a different folder
>
> Op maandag 20 maart 2023 om 17:43:57 UTC+1 schreef John MacFarlane:
>
>> See the manual under —resource-path
>>
>>
>> On Mar 20, 2023, at 5:11 AM, Johan Lijffijt <johanl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>> Hello,
>>
>> I try to figure out how to use pandoc with the obsidian app. First issue
>> i find is that pandic does not seem to find my attachment folder so i would
>> be forced to place all atachment in the same root as my notes.
>>
>> I do see i can give arguments to Pandoc. Is there a way i can tell Pandoc
>> where my attachments are located?
>>
>> Thanks!
>>
>> Johan
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/0ff8742a-c32d-413a-b272-477646111623n%40googlegroups.com
>> <https://groups.google.com/d/msgid/pandoc-discuss/0ff8742a-c32d-413a-b272-477646111623n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/60916db2-8ccd-4758-a0e4-d86d03016570n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 4835 bytes --]
[-- Attachment #2: Screen Shot 2023-03-21 at10.49.33 AM.png --]
[-- Type: image/png, Size: 56554 bytes --]
prev parent reply other threads:[~2023-03-21 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 12:11 Johan Lijffijt
[not found] ` <0ff8742a-c32d-413a-b272-477646111623n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-03-20 16:43 ` John MacFarlane
[not found] ` <3D8C005A-8E46-4A8A-8B32-65D19065DBDC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-03-20 17:50 ` Johan Lijffijt
[not found] ` <7e8595c5-c527-493d-984a-b7d69d145d53n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-03-21 15:52 ` MJ [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60916db2-8ccd-4758-a0e4-d86d03016570n@googlegroups.com \
--to=mj.design.thinks-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).