public static void main()

in markbook/src/main/java/org/apache/hadoop/gateway/markbook/MarkBook.java [41:71]


  public static void main( String[] args ) throws IOException, ParseException {
//    Pattern pattern = Pattern.compile( "<<(.+?)>>" );
//    Matcher matcher = pattern.matcher( "before <<first>> <<second>> after" );
//    matcher.find();
//    System.out.println( matcher.group( 1 ) );
//    System.out.println( matcher.replaceFirst( "__" + matcher.group( 1 ) + "__" ) );
//    matcher = pattern.matcher( matcher.replaceFirst( "__" + matcher.group( 1 ) + "__" ) );
//    matcher.find();
//    System.out.println( matcher.group( 1 ) );
//    System.out.println( matcher.replaceFirst( "__" + matcher.group( 1 ) + "__" ) );

//    Pattern pattern = Pattern.compile( "<\\!---\\s*.*\\s*--->" );
//    String text = "before <!---\nincluded\n---> after";
//    Matcher matcher = pattern.matcher( text );
//    matcher.find();
//    System.out.println( replace( matcher, text, "X" ) );

//    System.out.println( replaceHeadings( "#text#" ) );
//    System.out.println( replaceHeadings( "# text #" ) );
//    System.out.println( replaceHeadings( "## text ##" ) );
//    System.out.println( removeComments( "line\r\n<!--- \r\n comment \r\n comment \r\n---> \r\nline" ) );

//    System.out.println( replaceReferences( "#[ text ]" ) );
//    System.out.println( replaceReferences( "* #[ some text ]after" ) );
//    System.out.println( replaceReferences( "\n#[ text ]" ) );

    CommandLine command = parseCommandLine( args );
    String markdown = loadMarkdown( command );
//    System.out.println( markdown );
    storeHtml( command, markdown );
  }