Merge pull request #64 from manunamz/patch-2
Update bidirectional_links_generator.rb
This commit is contained in:
commit
ad94b736b1
@ -55,8 +55,8 @@ class BidirectionalLinksGenerator < Jekyll::Generator
|
||||
# At this point, all remaining double-bracket-wrapped words are
|
||||
# pointing to non-existing pages, so let's turn them into disabled
|
||||
# links by greying them out and changing the cursor
|
||||
current_note.content.gsub!(
|
||||
/\[\[(.*)\]\]/i, # match on the remaining double-bracket links
|
||||
current_note.content = current_note.content.gsub(
|
||||
/\[\[([^\]]+)\]\]/i, # match on the remaining double-bracket links
|
||||
<<~HTML.chomp # replace with this HTML (\\1 is what was inside the brackets)
|
||||
<span title='There is no note that matches this link.' class='invalid-link'>
|
||||
<span class='invalid-link-brackets'>[[</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user