diff --git a/_plugins/bidirectional_links_generator.rb b/_plugins/bidirectional_links_generator.rb index 3c7733c..0826d9b 100644 --- a/_plugins/bidirectional_links_generator.rb +++ b/_plugins/bidirectional_links_generator.rb @@ -31,7 +31,7 @@ class BidirectionalLinksGenerator < Jekyll::Generator # pointing to non-existing pages, so let's turn them into disabled # links by greying them out and changing the cursor current_note.content = current_note.content.gsub( - /\[\[?(.*)\]\]/i, # match on the remaining double-bracket links + /\[\[(.*)\]\]/i, # match on the remaining double-bracket links <<~HTML.chomp # replace with this HTML (\\1 is what was inside the brackets) [[