# -*- coding: utf-8 -*- =begin rdoc =end module SixArm; module Markdown; end; end class SixArm::Markdown::Headline < OpenStruct def link "[#{text}](##{anchor})" end def anchor text.downcase.gsub(/\W+/,'-') end end