The problem with the old design is noticeable when the heading's face
has a background, overline, or underline attribute. That will appear on
the new line below the heading.
You can reproduce the problem by evaluating the following form and
visiting a page with headings:
(set-face-attribute 'elpher-gemini-heading1 nil :background "gray50" :overline t)
elpher--gemini-page-headings))
(unless (display-graphic-p)
(insert (make-string level ?#) " "))
- (insert (propertize header 'face face))
- (newline))))
+ (insert (format "%s\n" (propertize header 'face face))))))
(defun elpher-gemini-insert-text (text-line)
"Insert a plain non-preformatted TEXT-LINE into a text/gemini document.