lib/tocer/transformers/link.rb in tocer-14.5.0 vs lib/tocer/transformers/link.rb in tocer-15.0.0
- old
+ new
@@ -12,10 +12,10 @@
@parser = parser.new text
end
def label = parser.content.gsub(embedded_link, embedded_link_label)
- def url = label.downcase.gsub(/\s/, "-").gsub(/[^\w\-]+/, "")
+ def url = label.downcase.gsub(/\s/, "-").gsub(/[^\w-]+/, "")
def call(url_suffix: "") = "#{indented_bullet}[#{label}](##{computed_url url_suffix})"
private