Convert usfm bibles into gemtext (python library/utility)
li1, mi: support markers
Zach DeCook 2022-08-10
parent e0d2aec · commit 21a75c1
-rwxr-xr-xusfm2gmi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 24d1d5e..5aa1a78 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -61,8 +61,10 @@ def convert(line):
skip = 1
elif word in ['\\p','\\m']:
out += '\n'
- elif word in ['\\pi','\\pi1']:
+ elif word in ['\\pi','\\pi1','\\mi']:
out += '\n\t'
+ elif word in ['\\li1']:
+ out += '\n* '
elif word in ['\\q', '\\q1']:
out += '\n> '
elif word in ['\\q2']: