Convert usfm bibles into gemtext (python library/utility)
rem: remove it
Zach DeCook 2021-02-25
parent 75e5751 · commit df37f69
-rwxr-xr-xusfm2gmi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 9b976ab..78800ee 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -10,8 +10,10 @@ def convert(line):
out = ''
if len(split) == 0:
return out
- if split[0] == '\\s':
+ elif split[0] == '\\s':
return '\n## ' + ' '.join(split[1:])
+ elif split[0] == '\\rem':
+ return out
skip = 0
for word in split:
if skip > 0: