You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
620 B

#!/usr/bin/env python3
import re
import sys
from typing import List
# Import local files
from transform import transform
from util import *
from context import Context
from html import html
from katex import KatexClient
from mj_show import show
doc = import_md(open(sys.argv[1], "r").read())
print(show(doc))
context = Context(doc)
doc = doc.walk(transform, context)
print("---------------------")
#print(show(doc))
#print(convert_text(doc, input_format="panflute", output_format="markdown"))
#open("output.html", "w").write("<head> <meta charset='utf-8'> </head>" + html(doc))
k = KatexClient()
input()
print(k)