From 340ab81f36d0fad44383a77617aea43f9f766b17 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 3 Dec 2020 20:16:29 -0500 Subject: ThML: Parse more tags generically --- thml2gmi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thml2gmi.py') 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 -- cgit 1.4.1