We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87d715f commit d5704e7Copy full SHA for d5704e7
_plugins/auto-anchor.rb
@@ -12,11 +12,11 @@
12
if post.data["auto_id"] != false
13
post.content.gsub!(/^ *- .*/) do |string|
14
## List items surrounded in bold
15
- title = string.match(/\*\*.*\*\*/).to_s
+ title = string.match(/\*\*.*?\*\*/).to_s
16
## List items surrounded in italics
17
- title.empty? && title = string.match(/\*.*\*/).to_s
+ title.empty? && title = string.match(/\*.*?\*/).to_s
18
## List items that are hyperlinks
19
- title.empty? && title = string.match(/\[.*\][(\[]/).to_s
+ title.empty? && title = string.match(/\[.*?\][(\[]/).to_s
20
21
if title.empty?
22
## No match, pass item through unchanged
0 commit comments