aidenlx / marginnote-companion

An Obsidian plugin to bridge MarginNote 3 and Obsidian.md
MIT License
153 stars 14 forks source link

Use Markdown Links instead of Wikilinks #34

Open zcysxy opened 2 years ago

zcysxy commented 2 years ago

When the excerpt is an image, the plugin inserts it as a wikilink, for example, ![[image.png]]. Would it be possible to add an option to insert it as a Markdown link, like ![](<imgae.png>)?

Because unlike in the reading view, where the link has an MN icon, in Live Preview it leaves empty brackets using the default template. So I change the template to [{{excerpt}}]({{link.Url}}) to attach the link to the image. However, this doesn't work if the image link is a wikilink.

image

As a side issue, I think it's better to add something to the link brackets to make it look better in the Live Preview. Something like [:mn:](link).

MiracleXYZ commented 2 years ago

👍 +1 to this. I want nothing but the MarginNote icon to show up in Live Preview, but I haven't found a way to do that.