Class Run

java.lang.Object
com.github.rjeschke.txtmark.Run

public class Run extends Object
Simple class for processing markdown files on the command line.

Usage:

 java -cp txtmark.jar txtmark.Run filename [header_footer_file]
 
 

The header_footer_file is an optional UTF-8 encoded file containing a header and a footer to output around the generated HTML code.

Example:

 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>markdown</title>
 <link type="text/css" href="style.css" rel="stylesheet"/>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
 </head>
 <body>
 <!-- the following line separates header from footer -->
 <!-- ### -->
 </body>
 </html>
 
 
  • Constructor Details

    • Run

      public Run()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Static main.
      Parameters:
      args - Program arguments.
      Throws:
      IOException - If an IO error occurred.