add link support to renderer
This commit is contained in:
parent
0c19d47ad3
commit
2112515f47
4
uml.py
4
uml.py
|
@ -126,6 +126,9 @@ def renderer(chain):
|
|||
cbuf = " "
|
||||
cbuf += i
|
||||
print(cbuf)
|
||||
elif i.element == "r":
|
||||
rendered = True
|
||||
print("=>", i.data, i.data2)
|
||||
elif i.element == "x":
|
||||
print(i.data)
|
||||
if rendered: print()
|
||||
|
@ -143,7 +146,6 @@ def main():
|
|||
# ignore blank lines (but not seperating paragraphs)
|
||||
if len(i) == 0 and not flags["IN_PREFORMATTED"]:
|
||||
if flags["PARA_PREV"]:
|
||||
print("hi")
|
||||
flags["PARA_PREV"] = False
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue