Convert usfm bibles into gemtext (python library/utility)
q and m: blockquote and resume paragraph
Zach DeCook 2021-02-25
parent 732d53b · commit e864999
-rwxr-xr-xusfm2gmi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 4edf6b8..806b94f 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -29,8 +29,10 @@ def convert(line):
continue
if word in ['\\v', '\\c']:
skip = 1
- elif word == '\\p':
+ elif word in ['\\p','\\m']:
out += '\n'
+ elif word in ['\\q']:
+ out += '\n> '
elif word in ['\\wj','\\wj*']:
continue
else: