xiota / geany-preview

Turns Geany into a markdown editor by providing a preview pane in the sidebar to show the formatting of several light-weight languages as they are edited. Supported document types include AsciiDoc, DocBook, Fountain, HTML, LaTeX, Markdown, MediaWiki, reStructuredText, Textile, and Txt2Tags.
GNU General Public License v3.0
12 stars 0 forks source link

txt-document: a colon plus space in the very first line after the first expression shows different background color #30

Closed ralf3u closed 2 years ago

ralf3u commented 2 years ago

Steps to reproduce

Result The first line has a different background color. And the whole text of the document appears in the preview.

Expectation There should be no different background color. And there should be an empty preview.

xiota commented 2 years ago

This is caused by the email header detection. The tzz: is treated similarly to other headers, like Subject:.

xiota commented 2 years ago

I've modified regex to reduce false positives when detecting headers. The PPA has been updated. You can control the style that is used for headers with the geany_preview_headers rules in preview.css.

ralf3u commented 2 years ago

I can confirm that issue is fixed.