Open wealthychef1 opened 2 years ago
Same problem, even though I added the pandoc path to my config. Don't know what is happening.
Not sure where I read it, but aparently Obsidians default image markup is not proper Markdown and is not compatable with pandoc.
Not sure where I read it, but aparently Obsidians default image markup is not proper Markdown and is not compatable with pandoc.
I believe you are incorrect on this point. From what I can see Obsidian.md follows the standard to the letter if you don't use wiki formatting. But even if it deviates slightly, I wonder if it would be hard to add support for this minor syntax change in the plugin outside of pandoc.
@wealthychef1 I'll take back if this is correct Markdown or not, looks like it is from your reference. The issue I was highlighting is that others are saying this is not Markdown that Pandoc recognises (who knows why 🤷♂️).
My initial searches on this issue kept bringing up threads with no clear answers (like this one). Here's a few links to where I've found more useful discussion: https://github.com/OliverBalfour/obsidian-pandoc/issues/81#issuecomment-1013729587 https://github.com/OliverBalfour/obsidian-pandoc/issues/66#issuecomment-1013519239
Trick seems to be:
Converted ![[Obsidian image links]] to ![Markdown image links](/path/to/image.png)
Try it yourself if your skeptical. Yes this is more a workaround than FIX.
Follow the links above for more discussion.
@wealthychef1 I'll take back if this is correct Markdown or not, looks like it is from your reference. The issue I was highlighting is that others are saying this is not Markdown that Pandoc recognises (who knows why 🤷♂️).
Right, I get it.
My initial searches on this issue kept bringing up threads with no clear answers (like this one). Here's a few links to where I've found more useful discussion: #81 (comment) #66 (comment)
- Make Pandoc happy by swapping the image format from the Obsidian default over to the link format
- Pandoc starts to complain it cant find your images. Follow the links above for more discussion.
I did but now I'm getting a new error when I try to export in version 1.0. In the console I see this, which I guess github refuses to wrap, sorry about the long lines:
cmd: /opt/local/bin/pandoc -f markdown --resource-path="/Volumes/2_TB_SSD_external/Projects_2TB/computers-and-geekery/projects and languages/Obsidian development/wealthyvault/Knowledge/Politics Economics and History/US Electoral Politics/Politicians" --resource-path="assets" --embed-resources --standalone --metadata title="Alexandria Ocasio-Cortez or AOC" -s -o "/Users/rcook/Downloads/Alexandria Ocasio-Cortez or AOC.pdf" -t pdf "/Volumes/2_TB_SSD_external/Projects_2TB/computers-and-geekery/projects and languages/Obsidian development/wealthyvault/Knowledge/Politics Economics and History/US Electoral Politics/Politicians/Alexandria Ocasio-Cortez or AOC.md"
error: Command failed: /opt/local/bin/pandoc -f markdown --resource-path="/Volumes/2_TB_SSD_external/Projects_2TB/computers-and-geekery/projects and languages/Obsidian development/wealthyvault/Knowledge/Politics Economics and History/US Electoral Politics/Politicians" --resource-path="assets" --embed-resources --standalone --metadata title="Alexandria Ocasio-Cortez or AOC" -s -o "/Users/rcook/Downloads/Alexandria Ocasio-Cortez or AOC.pdf" -t pdf "/Volumes/2_TB_SSD_external/Projects_2TB/computers-and-geekery/projects and languages/Obsidian development/wealthyvault/Knowledge/Politics Economics and History/US Electoral Politics/Politicians/Alexandria Ocasio-Cortez or AOC.md"
pandoc: pdflatex: createProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device)
OK now it seems I can simply export to PDF using File -> Export PDF
, which is a command that strangely does not exist from the usual Obsidian command palette. Strange.
At the minute I am looking at a similar issue. I get no images but they are referenced in the HTML. I noticed my exported HTML was lacking variables in the CSS :root
. Through modification of the plugin code I found that the getAppConfig() function was failing, because on my system there is no file called "config" in the .obsidian folder. What I have are multiple files ("app.json", "appearance.json", etc.).
A few more notes on various things I found:
![[fig/image-file.svg]]
would work since I had images in the fig/ folder.<img>
in the html I was getting two different things:
![Figure: Caption text](fig/image-file.svg "Caption text")
I got HTML output <div alt="Figure: Caption text" src="fig/image-file.svg" class="internal-embed"></div>
![[fig/image-file.svg]]
I got <span alt="fig/image-file.svg" src="fig/image-file.svg" class="internal-embed">fig/image-file.svg</span>
I had the same problem, and I think I found the solution. I recorded a video to help you out. Here is the link: https://youtu.be/pKawg6mPWE4
@wealthychef1
I did but now I'm getting a new error when I try to export in version 1.0. In the console I see this, which I guess github refuses to wrap, sorry about the long lines: SEE EXAMPLE ABOVE
From your path:
--resource-path="/Volumes/2_TB_SSD_external/Projects_2TB/computers-and-geekery/projects and languages/...,
Yeah I think the issue now is the folders with spaces.. the first in your path being "projects and languages". To workaround shuffle things around until you have a path with no folders with spaces in.
Found the solution
I had the same problem, and I think I found the solution. I recorded a video to help you out. Here is the link: https://youtu.be/pKawg6mPWE4
You are the man. This worked for me!
Some kind of warning about attachments with spaces in them would be useful! Renaming all my attachments worked...
Hello, I'm trying to export this file from my vault as HTML. The images are not included in the resulting HTML output. I feel like I must be making a mistake. Can someone point out my error? Thank you.
Why is it that the "export as HTML" option says "(without Pandoc)"?