The discussion revolves around unexpected formatting in a code snippet where <b and <a are interpreted as HTML tags, causing bold text and blue links. GaurangTandon noticed the issue and asked for an explanation. Mittineague clarified that <b and <a are treated as the start of HTML tags, leading to unintended formatting. lrossouw confirmed this is due to HTML parsing. GaurangTandon questioned why partial tags like <b are parsed, and Mittineague explained that full parsing would require complex logic and that current behavior is a practical compromise.
The is the actual text in the actual way it was written:
Actual text:
if a<b
print "a is less than b!"
elsif b<a
print "b is less than a"
Can someone please explain why the following result is being produced by the above text? How does the bold text and the blue link text come into existence? If it a fault with Discourse markdown parser, please fix it. Thanks!
Result produced:
if a<b
print “a is less than b!”
elsif b<a
print “b is less than a”
Anything below that text also appears weird even after a horizontal rule is put