-->

Table of content

– Development, 3 mins read

Wikilinks

Double bracketed links are converted to Jekyll-ingestible Markdown formatting by the bidirectional_links_generator.rb plugin. However, Obsidian’s Wikilink setting also applies to a proprietary image embed format with double brackets.

I’m working on another plugin to complement the bidirectional link generator and resolve Obsidian image embeds automatically. This page is for testing the efficacy of the script and the regex I’m using.

This is a useful reference for Regex in Ruby and this is a good Ruby Regex Tester.

Version 1

But it doesn't work in this [[type of block]] because of the extra linebreaks and characters before the tick marks
Is this also a code block oh shit

Version 2

I DID A GOOD REGEX!

Edits:

For those of you who would like to know, this is the regex I added to the end of each section in the generator: (?!.*?[\r\n]+[`{3,}|~{3,}])

Helpful References

It works! Now you can drag and drop images to Obsidian editor and the asset path will automatically generate. Make sure to follow guidelines in [[ Obsidian Setup ]]

Testing

This image is in a Markdown link to nowhere and also has a title Image alt text

Using the note title variable: a note about cats. Using the note’s filename: [[ cats ]]. Using the note’s title, with a label: [[ cats|link to the note about cats using the note title ]]. Using the note’s filename, with a label: [[ cats|link to the note about cats using the note’s filename ]]. In all cases, if the double-bracket link does not point to a valid note, the double brackets will still be shown, like this: [[ there is no note that matches this link ]]. This is an Obsidian Image. . This is a Markdown image with alt text only. Alt text. This is a Markdown image without alt text but with a title. . This is an Obsidian image that links to the assets folder. . And another with a slash.

Here are all the notes in this garden, along with their links, visualized as a graph.

Adding custom fontAdjustinh font sizeAnalytics setupBack to topCrisp chatCustom theme setupDark mode toggleDigital GardenA note about catsGetting startedYour first seedHeader bannerIcons as headersLink previewReading TimeRecent blogsRobots setupSite Map testSitemap setupSocial image previewSocial media shareTable of contentTwitter