Content after a horizontal line in email replies is stripped?

As the topic name says, it appears content after a horizontal line in email replies is stripped away, even though the horizontal line is in a codeblock.

See Difference between `fail` and `fail-check`? - #3 by sorawee - Questions & Answers - Racket Discussions for an example. It’s supposed to look like this:


pre-content
@--------------------
post-content
pre-content
--------------------
post-content

But Discourse incorrectly processed it, and showed:


pre-content
@--------------------
post-content
pre-content

2 Likes

This is generally done to strip out any email signatures.
The regular expression that looks for this is probably not aware of code blocks.

EDIT I was wrong, that code is aware of code blocks. Do you happen to have access to the original email contents?

4 Likes

Thanks for the report. I’m reworking our HTML to Markdown process and removing all the magic trimming that is doing more harm than good at the same time.

I’ve added your email on my list to check.

1 Like