diff --git a/_plugins/bidirectional_links_generator.rb b/_plugins/bidirectional_links_generator.rb index 78184b5..affe225 100644 --- a/_plugins/bidirectional_links_generator.rb +++ b/_plugins/bidirectional_links_generator.rb @@ -65,10 +65,11 @@ class BidirectionalLinksGenerator < Jekyll::Generator current_note.content = current_note.content.gsub( /\[\[([^\]]+)\]\]/i, # match on the remaining double-bracket links <<~HTML.delete("\n") # replace with this HTML (\\1 is what was inside the brackets) - + [[ \\1 - ]] + ]] + HTML ) end diff --git a/assets/css/note.css b/assets/css/note.css index 74fd4a7..c19160e 100644 --- a/assets/css/note.css +++ b/assets/css/note.css @@ -9,4 +9,13 @@ .backlinks { -} \ No newline at end of file +} + +.invalid-link { + opacity: 80%; + cursor: help; +} + +.invalid-link-brackets { + opacity: 20%; +}