about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-25 20:13:10 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-25 20:13:10 -0500
commitf3af18d9009ddf35dda0ef60237ce349d64bfcca (patch)
tree9601cb3b76cda74248d06c3d684298a67744d478 /usfm2gmi.py
parenta1497baf3e3b68839246fc072f3bd13b3a9709fd (diff)
downloadusfm2gmi-f3af18d9009ddf35dda0ef60237ce349d64bfcca.tar.gz
em, it: support similar to markdown convention
Diffstat (limited to 'usfm2gmi.py')
-rwxr-xr-xusfm2gmi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 0d7d0e6..516e72c 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -58,6 +58,10 @@ def convert(line):
       continue
     elif word in ['\\wj','\\wj*']:
       continue
+    elif word in ['\\em','\\it']:
+      out += '*'
+    elif word in ['\\em*', '\\it*']:
+      out = out.rstrip() + '*'
     elif word == '\\nd':
       nd = True
     elif word == '\\nd*':