Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert formatting. #258

Open
setpill opened this issue Aug 21, 2019 · 1 comment · May be fixed by #546
Open

Convert formatting. #258

setpill opened this issue Aug 21, 2019 · 1 comment · May be fixed by #546
Assignees

Comments

@setpill
Copy link

setpill commented Aug 21, 2019

Sourced from: https://modern.ircdocs.horse/formatting.html.

Format IRC Mattermost Notes
Bold 0x02 **/__
Italics 0x1D */_
Underline 0x1F Not supported
Strikethrough 0x1E ~~ IRC support only in Textual
Monospace 0x11 ` IRC support only in IRCCloud
Color 0x03 Not supported Already stripped
Hex Color 0x04 Not supported Coulnd't test; maybe already stripped?
Reverse 0x16 Not supported
Reset 0x0F Non-trivial

Also something to take into account is that IRC format characters aren't paired; they are toggles. Only one is required to format an entire message (or starting from halfway in). In order to properly deal with this in mattermost, any message containing an odd number of the same format character (combination) should be terminated with that character in order to "close the tag".

The need for this makes the Reset character less work, since it is essentially the same functionality at an arbitrary point in the message.

@hloeung
Copy link
Collaborator

hloeung commented Sep 16, 2023

@setpill, or anyone else, I have something which seems to work for me. Would you be willing to help test this out? #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants