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

Print markdown symbols in IRC for inline code blocks, bold, etc. #83

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilyagr
Copy link

@ilyagr ilyagr commented Nov 20, 2024

Ideally, this would be configured in the settings, but for now it is unconditional.

For this reason, I'll make this a draft PR, to be used by anybody who needs this. Feel free to take it as is if you feel like it, or I might improve it later.


In many IRC clients, including goguma/gamja/senpai (all the clients with good support for soju bouncers like https://chat.sr.ht), the formatting Dis4IRC previously used for this is invisible. For them, preserving the backticks, starts, etc, is very helpful.

Partially fixes #81. (I did not address multi-line code blocks)


Here's what the IRC side of this looks like for gamja (default client for chat.sr.ht):

image

Before this PR, there would not be backticks or stars in there. I filed an issue about it, no idea if it would be fixed. (And I'm not familiar enough with IRC formatting to fix it myself)

Here's what this PR looks like for a client that supports formatting (Textual, takes effort to make work with soju and the interaction glitches):

image

I think this is not too bad. In fact, the monospace in this client is not very easy to see without backticks since it doesn't change the background for monospace by default.

Ideally, this would be configured in the settings, but for now it is
unconditional.

In many IRC clients, including goguma/gamja/senpai (all the clients
with good support for soju bouncers like <https://chat.sr.ht>), the
formatting Dis4IRC previously used for this is invisible. For them,
preserving the backticks, starts, etc, is very helpful.

Partially fixes zachbr#81
@ilyagr ilyagr changed the title Print markdown symbols in IRC for code blocks, bold, etc. Print markdown symbols in IRC for inline code blocks, bold, etc. Nov 20, 2024
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 this pull request may close these issues.

Improve the display of Discord code blocks when bridging to IRC
1 participant