@@ -0,0 +1,1229 @@
+#!/usr/bin/env python3%0A%0Aimport argparse%0Aimport markups%0Aimport sys%0A%0A%0Adef export_file(args):%0A    markup = markups.get_markup_for_file_name(args.input_file)%0A    with open(args.input_file) as input:%0A        text = input.read()%0A    if not markup:%0A        sys.exit('Markup not available.')%0A    html = markup.get_whole_html(text,%0A                                 include_stylesheet=args.include_stylesheet,%0A                                 fallback_title=args.fallback_title,%0A                                 webenv=args.web_environment)%0A    with open(args.output_file, 'w') as output:%0A        output.write(html)%0A%0A%0Aif __name__ == '__main__':%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument('--web-environment', help='export for web environment',%0A                        action='store_true')%0A    parser.add_argument('--include-stylesheet', help='embed the stylesheet into html',%0A                        action='store_true')%0A    parser.add_argument('--fallback-title', help='fallback title of the HTML document',%0A                        metavar='TITLE')%0A    parser.add_argument('input_file', help='input file')%0A    parser.add_argument('output_file', help='output file')%0A    args = parser.parse_args()%0A    export_file(args)%0A

Add markup2html.py reference script