XML not visible in post

Hi, there is invisible XML block below.





























Here is the end of XML block.

This is by design, and how Markdown worksā€¦ put it in a code block unless you want it to be interpreted as illegal non-whitelisted html.

2 Likes

Though I expected this behavior, I would like to have a small warning during posting like this: ā€˜Your message contains a code, consider to put it in a code block using triple back quotes (unless ā€¦)ā€™ :slight_smile:

1 Like

This is a pretty enormous problem. I do not see Discourse core adding such a feature for ā€œautomatic code block missingā€ warning. Not sure if even Stack Overflow do this.

But ā€¦ it is an interesting idea for a plugin, which would have to use some very fancy regex mountain or a custom parser of sorts.

This has been covered at EXTREME length in other topics about ā€œauto detecting code when a user canā€™t figure out how to properly format codeā€

And yes SO does do this, because the cost of not doing it on a site about programming was super high.

1 Like

closing this as ā€¦ by design and covered at:

2 Likes