public void execute ( ) throws MojoExecutionException { if ( extensions == null || extensions . isEmpty ( ) ) { extensions = ImmutableList . of ( "md" , "markdown" ) ; } if ( instance == null ) { instance = new PegDownProcessor ( Extensions . ALL ) ; } try { for ( File f : getResources ( extensions ) ) { process ( f ) ; } } catch ( IOException e ) { throw new MojoExecutionException ( "Error while processing a Markdown file" , e ) ; } }
Compiles all markdown files located in the internal and external asset directories .