maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1726412 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java
Date Sat, 23 Jan 2016 16:42:58 GMT
Author: hboutemy
Date: Sat Jan 23 16:42:58 2016
New Revision: 1726412

URL: http://svn.apache.org/viewvc?rev=1726412&view=rev
Log:
[DOXIA-535] added support for .markdown file extension (in addition to current .md)

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java?rev=1726412&r1=1726411&r2=1726412&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParserModule.java
Sat Jan 23 16:42:58 2016
@@ -38,10 +38,15 @@ public class MarkdownParserModule
     public static final String FILE_EXTENSION = "md";
 
     /**
+     * Alternate extension for Markdown files.
+     */
+    public static final String ALTERNATE_FILE_EXTENSION = "markdown";
+
+    /**
      * Build a new instance of {@link MarkdownSiteModule}.
      */
     public MarkdownParserModule()
     {
-        super( MarkdownParser.ROLE_HINT, FILE_EXTENSION );
+        super( MarkdownParser.ROLE_HINT, FILE_EXTENSION, ALTERNATE_FILE_EXTENSION );
     }
 }



Mime
View raw message