# Define a filter for adding annotation links Nanoc::Filter.define(:scholar_annotations) do |content, params| content = content.dup # Add Dokieli actions at the end of the
content.gsub! %r{\<\/header\>} do |match| <<-HTML

Notifications and annotations

HTML end content end