Theological Markup Language to gemtext converter
ThML: Parse more tags generically
Zach DeCook 2020-12-03
parent 54d0d4f · commit 340ab81
-rwxr-xr-xthml2gmi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/thml2gmi.py b/thml2gmi.py
index b2b6338..8d3f224 100755
--- a/thml2gmi.py
+++ b/thml2gmi.py
@@ -16,9 +16,9 @@ def iprint(string):
def parseSomething(thing):
if(len(thing.tag) == 4 and thing.tag[:3] == 'div'):
parseDiv(thing)
- elif (thing.tag == 'p'):
+ elif (thing.tag in ['argument', 'div', 'p']):
parseP(thing)
- elif (thing.tag in ['span']):
+ elif (thing.tag in ['a', 'cite', 'name', 'scripRef', 'span']):
parseInline(thing)
elif (thing.tag == 'i'):
# Convention: Wrapping italics in asterisks