feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Add ability to escape backticks

Open GhostInThePotato opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe. Currently unable to escape backticks, which means I can't demonstrate to someone how to do multi-line code.

Describe the solution you'd like Be able to escape backticks so that RocketChat doesn't try to format the backticks into code blocks.

Describe alternatives you've considered The current best way I've found so far is with the following code:

image

But this only sort of looks correct:

image

GhostInThePotato avatar Apr 09 '20 10:04 GhostInThePotato

I just ran into the same problem

abruening-iwt avatar Apr 06 '22 16:04 abruening-iwt

You can indent your code block with four spaces, which will preserve the backticks. Note that RocketChat eats leading whitespace at the beginning of the message, so you have to write some random text first, e.g. the word "Example":

Example:

    ```
    some code here
    ```

Screenshot of example in RocketChat

99991 avatar May 31 '23 09:05 99991