Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Web editor messes up greater-thans in code block

Craig McQueen
Contributor
October 29, 2024

I have a Trello card with a Python code block, where each line starts with `>>>`. Eg

>>> import unicodedata
>>> e_acute = 'é'

But when I entered it in the web interface, the editor erroneously converted the `>>>` into `> \>>`.

I fixed it in the Android app. But the web interface still displays it incorrectly.

1 answer

0 votes
Renato Fagaraz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 3, 2024

Hey @Craig McQueen !

Thanks for pointing this out.

The `>>>` symbols you're seeing are something you might recognize from older versions of Python's IDLE (Integrated Development and Learning Environment). They're used to show the Python prompt in the interactive shell but aren't actually part of the code you need to share or run.

As for why `>>>` turned into `> \>>`, that's because Trello, like many other platforms, uses Markdown or similar systems to format text. These systems use special characters for formatting, so they escape certain sequences to avoid messing up your text. Escaped characters help treat special characters as regular text instead of formatting commands.

It seems like Trello's web interface is escaping these characters even inside a code block, which usually shouldn't happen. Code blocks are meant to keep the original formatting, including any special characters.

I'll check in with our product team to see if this is how it's supposed to work or if it's a bug. If it's a bug, I'll make sure to report it so we can get it sorted out.

Thanks again for letting us know, and feel free to reach out if you have any other questions!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events