From f3af18d9009ddf35dda0ef60237ce349d64bfcca Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 25 Feb 2021 20:13:10 -0500 Subject: em, it: support similar to markdown convention --- usfm2gmi.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usfm2gmi.py') 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*': -- cgit 1.4.1