[Bug]: MFM italicization breaks with certain characters #9767

Open
opened 3 months ago by Unattributed · 3 comments

What happened?

Writing a new post, I was listing a bunch of titles with italics. One of the titles had an apostrophe in it which caused the formatting to break:

Formatting Broken

What did you expect to happen?

I expected that using ' or three apostrophes to allow nesting a apostrophe within the italics.

Version

13.2.0-beta3

Instance

calckey.social

What browser are you using?

Firefox

Relevant log output

No response

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
### What happened? Writing a new post, I was listing a bunch of titles with italics. One of the titles had an apostrophe in it which caused the formatting to break: ![Formatting Broken](https://codeberg.org/attachments/254dadf7-9c69-4526-af05-aeb4f0ae1231) ### What did you expect to happen? I expected that using \' or three apostrophes to allow nesting a apostrophe within the italics. ### Version 13.2.0-beta3 ### Instance calckey.social ### What browser are you using? Firefox ### Relevant log output _No response_ ### Contribution Guidelines - [x] I agree to follow this project's Contribution Guidelines
thatonecalculator changed title from [Bug]: MLM Formatting Breaks to [Bug]: MFM italicization breaks with certain characters 3 months ago
panos added the
🐛Bug
label 2 months ago

I think this is a bug in mfm-js.

I think this is a bug in [mfm-js](https://www.npmjs.com/package/mfm-js). ![](https://cdn.discordapp.com/attachments/823878222897741868/1091955537710686339/2023-04-02_142107.png)

I've had this happen to me today with the full stop.

I've had this happen to me today with the full stop.
panos added the
🖍MFM
label 1 month ago
naskya commented 4 weeks ago

I think this is a bug in mfm-js.

actually (sadly) it's not a bug but an expected behavior (due to technical limitations)
https://github.com/misskey-dev/mfm.js/issues/102

you need to use <i>something</i>

> I think this is a bug in mfm-js. actually (sadly) it's not a bug but an expected behavior (due to technical limitations) https://github.com/misskey-dev/mfm.js/issues/102 you need to use `<i>something</i>`
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: calckey/calckey#9767
Loading…
There is no content yet.