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

Adjacently nested bold and italic don't work #354

Closed
ToxicFrog opened this issue Apr 19, 2017 · 0 comments
Closed

Adjacently nested bold and italic don't work #354

ToxicFrog opened this issue Apr 19, 2017 · 0 comments
Assignees
Labels

Comments

@ToxicFrog
Copy link
Collaborator

Specifically, this works: *bold with _italic_ in the middle*
But this doesn't: *_bold and italic combined_*

The outer format is applied, the inner isn't. If you swap them around it fails in the same way.

This is probably a mistake in the regexes used to convert * and _ into weechat formatting codes.

@ToxicFrog ToxicFrog self-assigned this Apr 24, 2018
@trygveaa trygveaa added the bug label Feb 19, 2020
trygveaa added a commit that referenced this issue Jul 6, 2023
Instead of just using the text field of a message, use the rich_text
blocks to format the message.

The main reason for doing this was that messages that include images
suddenly started just having "This message contains interactive
elements." in the text field.

There are some other benefits as well:
 - It fixes some bugs with multiple formatting styles not being applied
   correctly.
 - It fixes links in code blocks not being rendered verbatim (but with
   text and url, like outside code blocks).
 - It fixes code blocks sometimes having newlines after/before ``` and
   sometimes not, depending on how the message was sent.

It looks like messages with images are now back to having the proper
text in the text field (for new messages), so this change isn't
necessary to fix that after all (except for for messages in the history
sent in the last couple of days), but since it fixes other issues as
well, it's best to keep it.

There is one bug left when inline code blocks contains links. Then there
will be ` characters before and after the link, which shouldn't be
there, but I'll leave fixing this for later.

Fixes #354, fixes #550, fixes #893
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants