Add wikilink syntax to control width of pictures in markdown preview #1328
Labels
foam-core
Related to API, core model or feature
foam-vscode
Foam for VSCode extension in packages/foam-vscode
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Is your feature request related to a problem? Please describe.
On really large monitors, the pictures added using ![[picture.png]] syntax take up the full width. The pictures are too large and make it difficult to read the document.
The extension below offers a solution by appending =##x syntax ![pic](./picture.png =##x). However, this syntax does not work with wiki link syntax
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-image-size
Describe the solution you'd like
Support Obsidian syntax for adjusting width of embedded images
https://help.obsidian.md/Linking+notes+and+files/Embed+files#Embed+an+image+in+a+note
Describe alternatives you've considered
Tried to use the ![pic](./picture.png =##x) syntax. Disadvantage is that foam does not renaming relative paths when a file is renamed, only the wikilinks. It would also be good for foam to auto-update relative paths to files in addition to the wikilinks. I can set up a separate issue for this if this would be of interest.
Screenshots or Videos
All needed pictures were added in the description.
The text was updated successfully, but these errors were encountered: