Class Run


  • public class Run
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Run()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Static main.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Run

        public Run()
    • Method Detail

      • main

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