From d14c16bf616f4908fd848880e1bd95f70b49bb6e Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Fri, 9 Jul 2010 16:46:52 -0700 Subject: [PATCH] Add Creole to valid markup formats. --- README.md | 1 + lib/gollum/page.rb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa89535e..01cb6a59 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ formats and allowed extensions is: * Textile: .textile * RDoc: .rdoc * Org Mode: .org + * Creole: .creole * ReStructured Text: .rest.txt, .rst.txt, .rest, .rst * ASCIIDoc: .asciidoc * POD: .pod diff --git a/lib/gollum/page.rb b/lib/gollum/page.rb index fd6f119d..ee142520 100644 --- a/lib/gollum/page.rb +++ b/lib/gollum/page.rb @@ -4,7 +4,7 @@ module Gollum Wiki.page_class = self - VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|re?st(\.txt)?|asciidoc|pod|\d)$/i + VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|creole|re?st(\.txt)?|asciidoc|pod|\d)$/i # Public: Initialize a page. # @@ -57,6 +57,8 @@ module Gollum :rdoc when /\.(org)$/i :org + when /\.(creole)$/i + :creole when /\.(re?st(\.txt)?)$/i :rest when /\.(asciidoc)$/i @@ -117,6 +119,7 @@ module Gollum when :textile then 'textile' when :rdoc then 'rdoc' when :org then 'org' + when :creole then 'creole' when :rest then 'rest' when :asciidoc then 'asciidoc' when :pod then 'pod'