Add Creole to valid markup formats.
This commit is contained in:
@@ -30,6 +30,7 @@ formats and allowed extensions is:
|
|||||||
* Textile: .textile
|
* Textile: .textile
|
||||||
* RDoc: .rdoc
|
* RDoc: .rdoc
|
||||||
* Org Mode: .org
|
* Org Mode: .org
|
||||||
|
* Creole: .creole
|
||||||
* ReStructured Text: .rest.txt, .rst.txt, .rest, .rst
|
* ReStructured Text: .rest.txt, .rst.txt, .rest, .rst
|
||||||
* ASCIIDoc: .asciidoc
|
* ASCIIDoc: .asciidoc
|
||||||
* POD: .pod
|
* POD: .pod
|
||||||
|
|||||||
+4
-1
@@ -4,7 +4,7 @@ module Gollum
|
|||||||
|
|
||||||
Wiki.page_class = self
|
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.
|
# Public: Initialize a page.
|
||||||
#
|
#
|
||||||
@@ -57,6 +57,8 @@ module Gollum
|
|||||||
:rdoc
|
:rdoc
|
||||||
when /\.(org)$/i
|
when /\.(org)$/i
|
||||||
:org
|
:org
|
||||||
|
when /\.(creole)$/i
|
||||||
|
:creole
|
||||||
when /\.(re?st(\.txt)?)$/i
|
when /\.(re?st(\.txt)?)$/i
|
||||||
:rest
|
:rest
|
||||||
when /\.(asciidoc)$/i
|
when /\.(asciidoc)$/i
|
||||||
@@ -117,6 +119,7 @@ module Gollum
|
|||||||
when :textile then 'textile'
|
when :textile then 'textile'
|
||||||
when :rdoc then 'rdoc'
|
when :rdoc then 'rdoc'
|
||||||
when :org then 'org'
|
when :org then 'org'
|
||||||
|
when :creole then 'creole'
|
||||||
when :rest then 'rest'
|
when :rest then 'rest'
|
||||||
when :asciidoc then 'asciidoc'
|
when :asciidoc then 'asciidoc'
|
||||||
when :pod then 'pod'
|
when :pod then 'pod'
|
||||||
|
|||||||
Reference in New Issue
Block a user