agenda-libre-ruby/app/helpers/digest_helper.rb

9 lines
262 B
Ruby
Raw Normal View History

2017-06-06 23:08:10 +02:00
# Helper for the digest/markdown views
module DigestHelper
# Important mechanism, to ensure the digest will not have the same footnote
# link multiple times
def renumber_footnotes(id, description)
description.gsub(/\[(\d)*\]/, "[#{id}_\\1]")
end
end