Sha256: e1196a6e3a1537df75bd674e55f4fc393633d76f8f3ea267528e097fe9f9cbc4

Contents?: true

Size: 779 Bytes

Versions: 3

Compression:

Stored size: 779 Bytes

Contents

# ~*~ encoding: utf-8 ~*~
module Gollum
  class Markup
    
    GitHub::Markup::Markdown::MARKDOWN_GEMS['kramdown'] = proc { |content|
        Kramdown::Document.new(content, :auto_ids => false, :input => "markdown").to_html
    }

    register(:markdown,  "Markdown", :regexp => /md|mkdn?|mdown|markdown/)
    register(:textile,   "Textile")
    register(:rdoc,      "RDoc")
    register(:org,       "Org-mode")
    register(:creole,    "Creole", :reverse_links => true)
    register(:rest,      "reStructuredText", :regexp => /re?st(\.txt)?/)
    register(:asciidoc,  "AsciiDoc", :regexp => /adoc|asciidoc/)
    register(:mediawiki, "MediaWiki", :regexp => /(media)?wiki/, :reverse_links => true)
    register(:pod,       "Pod")
    register(:txt,       "Plain Text")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitlab-gollum-lib-4.2.7.10.gitlab.2 lib/gollum-lib/markups.rb
gitlab-gollum-lib-4.2.7.10.gitlab.1 lib/gollum-lib/markups.rb
gitlab-gollum-lib-4.2.7.9 lib/gollum-lib/markups.rb