about summary refs log tree commit diff
path: root/thml2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2020-12-03 20:16:29 -0500
committerZach DeCook <zachdecook@librem.one>2020-12-03 20:16:29 -0500
commit340ab81f36d0fad44383a77617aea43f9f766b17 (patch)
tree72163a075bb9948e7f200abf00d1ce18c431541d /thml2gmi.py
parent54d0d4fdcef0ef49fc8701964686029aa6d4d3b6 (diff)
downloadthml2gmi-340ab81f36d0fad44383a77617aea43f9f766b17.tar.gz
ThML: Parse more tags generically
Diffstat (limited to 'thml2gmi.py')
-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