gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

f7785492cdaf3583e879bbbc338e0c511367c21b - Matthew Ernisse - 1615045657

handle preformatted blocks

view tree

view raw

diff --git a/files/thoughts-to-gemini.py b/files/thoughts-to-gemini.py
index 9f704a8..5750fab 100755
--- a/files/thoughts-to-gemini.py
+++ b/files/thoughts-to-gemini.py
@@ -139,6 +139,9 @@ class DeHTMLizer(object):
 
 			return f'«{tag.string}»{sNum!s}'
 
+		elif tag.name == 'pre':
+			return f'```\n{tag.string}\n```'
+
 		elif tag.name in nestable:
 			if hasattr(tag, 'contents'):
 				buf = ''