@ -14,8 +14,9 @@ from .images import ImageProcessor
from.output_generatorimportOutputGenerator
from.html_generatorimportHTMLGenerator
from.transform_processorimportTransformProcessor
from.pandoc_processorimportPandocProcessor
from.mj_showimportshow
frompanfluteimportconvert_text
defmain():
# Initialize command line arguments
@ -24,8 +25,10 @@ def main():
parser.add_argument("-p","--img-public-dir",help="Directory to put processed images into. The program will overwrite images, whose dependencies are newer.",default="public")
parser.add_argument("-c","--img-cache-dir",help="Directory to cache processed images and intermediate products. The program will overwrite files, whose dependencies are newer.",default="cache")
parser.add_argument("-i","--img-web-path",help="Path where the processed images are available on the website.",default="/")
parser.add_argument("-w","--output-html",help="The HTML file (for Web) to write into.",default="output.html")
parser.add_argument("-t","--output-tex",help="The TEX file to write into.",default="output.tex")
parser.add_argument("-w","--output-html",help="The HTML file (for Web) to write into.")
parser.add_argument("-t","--output-tex",help="The TEX file to write into.")
parser.add_argument("-m","--output-md",help="The Markdown file to write into. (Uses pandoc to generate markdown)")
parser.add_argument("-j","--output-json",help="The JSON file to dump the pandoc-compatible AST into.")
parser.add_argument("input_filename",help="The markdown file to process.")