Convert usfm bibles into gemtext (python library/utility)
em, it: support similar to markdown convention
Zach DeCook 2021-02-25
parent a1497ba · commit f3af18d
-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*':