add link support to renderer

This commit is contained in:
randomuser 2021-06-30 15:48:21 -05:00
parent 0c19d47ad3
commit 2112515f47
1 changed files with 3 additions and 1 deletions

4
uml.py
View File

@ -126,6 +126,9 @@ def renderer(chain):
cbuf = " " cbuf = " "
cbuf += i cbuf += i
print(cbuf) print(cbuf)
elif i.element == "r":
rendered = True
print("=>", i.data, i.data2)
elif i.element == "x": elif i.element == "x":
print(i.data) print(i.data)
if rendered: print() if rendered: print()
@ -143,7 +146,6 @@ def main():
# ignore blank lines (but not seperating paragraphs) # ignore blank lines (but not seperating paragraphs)
if len(i) == 0 and not flags["IN_PREFORMATTED"]: if len(i) == 0 and not flags["IN_PREFORMATTED"]:
if flags["PARA_PREV"]: if flags["PARA_PREV"]:
print("hi")
flags["PARA_PREV"] = False flags["PARA_PREV"] = False
continue continue