This Maven plugin uses GitHub API for converting Markdown to HTML.
This extension can be produced using maven:
mvn clean package
This plugin can be used in a maven project by adding the following to the pom.xml
:
<build>
<plugins>
<plugin>
<groupId>ch.sbb.maven.plugins</groupId>
<artifactId>markdown2html-maven-plugin</artifactId>
<version>${markdown2html-maven-plugin.version}</version>
<executions>
<execution>
<id>readme.md-to-about.html</id>
<phase>generate-resources</phase>
<goals>
<goal>convert</goal>
</goals>
</execution>
</executions>
<configuration>
<inputFile>${project.basedir}/README.md</inputFile>
<outputFile>${project.basedir}/README.html</outputFile>
<tokenEnvVarName>GITHUB_TOKEN</tokenEnvVarName>
</configuration>
</plugin>
...
</plugins>
</build>