diff options
| author | Zach DeCook <zachdecook@librem.one> | 2020-12-03 20:16:29 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2020-12-03 20:16:29 -0500 |
| commit | 340ab81f36d0fad44383a77617aea43f9f766b17 (patch) | |
| tree | 72163a075bb9948e7f200abf00d1ce18c431541d | |
| parent | 54d0d4fdcef0ef49fc8701964686029aa6d4d3b6 (diff) | |
| download | thml2gmi-340ab81f36d0fad44383a77617aea43f9f766b17.tar.gz | |
ThML: Parse more tags generically
| -rwxr-xr-x | thml2gmi.py | 4 |
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 |
