-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link attributes on Wikilink images don't seem to work #9048
Comments
I use a nightly version because Windows wouldn't allow me to run version 3.1.7, instead opening a pop-up saying:
But that's a separate issue. It's interesting that the nightly version didn't have this issue, though. |
Right. I am reluctant to support a syntax that nobody supports. I don't think you can provide such attributes on, e.g., GitHub wiki or Obsidian... |
@jgm I'm not entirely sure which syntax you are referring to. If it's the wikilink image syntax, then didn't you just add support for that? If it's the Or perhaps it's the combination that you are reluctant about? If so, can you clarify why? Since Pandoc now supports wikilink images, there should be some way to specify their size too, don't you think? |
I meant the combination. |
Closing as "out of scope" for now. |
Explain the problem.
I am exporting from markdown to pdf with this command:
-f markdown+wikilinks_title_after_pipe --defaults=C:\Users\User\Documents\Notir\Obsidian-notes\pandoc.yaml --citeproc --resource-path="${currentPath}" --resource-path="${attachmentFolderPath}" --metadata title="${currentFileName}" -s -o "${outputPath}" -t pdf
The variables are resolved using the Enhancing Export plugin for Obsidian, and the export works - including the images 🎉
However, I cannot resize the images, because link attributes do not seem to be working for wikilinks.
I am testing the new wikilink image support in a test note like so:
The first example works as expected, but the wikilink does not. The image size is unchanged, and
{#fig:cat width=50%}
is added in plain text. Adding thelink_attributes
extension doesn't make a difference in either casePandoc version?
pandoc 3.1.7-nightly-2023-09-01
Features: +server +lua
Scripting engine: Lua 5.4
Operating system: Windows 10 Home 10.0.19045
The text was updated successfully, but these errors were encountered: