You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a chat and paste a piece of code, for example:
<!DOCTYPE html><html><body>
<h2>What Can JavaScript Do?</h2>
<p id="demo">JavaScript can change HTML content.</p>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>
</body></html>
Select the code and select "Code" formatting option.
Also try by writing three backticks before pasting the code.
Expected behavior
Chatbox: all block of code should be selected
When message is sent block of code should show in the format indicated by this Figma design
See: Code block (non-coloured syntax)
Chatbox:
Message sent:
Actual behavior
When Code option is selected, only the first line of the block of code is formatted in the chatbox.
To get the complete code block formatted, you have to remove spaces or you have to enter each line by pressing SHIFT + Enter. Even after doing so, message is sent as if each line was a separate line of code, instead of what can be seen in Figma.
Code Block requires a closing pair of three backticks even though the above mentioned Figma has this comment: There is no need for a closing pair of ```
However, in the app 2.28.1 you do need closing pair of three backticks if not the code will not be sent in the Code format
Bug Report
Description
Steps to reproduce
Also try by writing three backticks before pasting the code.
Expected behavior
Chatbox: all block of code should be selected
When message is sent block of code should show in the format indicated by this Figma design
See: Code block (non-coloured syntax)
Chatbox:
Message sent:
Actual behavior
When Code option is selected, only the first line of the block of code is formatted in the chatbox.
To get the complete code block formatted, you have to remove spaces or you have to enter each line by pressing SHIFT + Enter. Even after doing so, message is sent as if each line was a separate line of code, instead of what can be seen in Figma.
Code Block requires a closing pair of three backticks even though the above mentioned Figma has this comment: There is no need for a closing pair of ```
However, in the app 2.28.1 you do need closing pair of three backticks if not the code will not be sent in the Code format
https://github.com/status-im/status-desktop/assets/68916150/9a8f6bc3-a705-410e-9020-5675600b0034
https://github.com/status-im/status-desktop/assets/68916150/f0dca7e0-0a93-42dc-b903-5b8a5c8e9c54
Additional Information
The text was updated successfully, but these errors were encountered: