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 = " "
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue