[GH-ISSUE #4866] [Issue]: Nested bold formatting is lost inside italic user messages #2691

Closed
opened 2026-10-21 05:53:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4866

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Nested Discord-style Markdown renders inconsistently between user and assistant messages. Bold text inside an italic block displays correctly in assistant responses but loses bold formatting in user prompts.

Expected behavior

The user message *This is **bold** in italic.* should render with the full sentence italicized and the word bold both bold and italic, matching assistant-message rendering.

Actual behavior

In user messages, the outer italic formatting overrides the nested bold formatting, so the word bold appears only italicized. The same Markdown renders correctly in assistant messages.

Steps to reproduce

  1. Open a chat in Marinara Engine 2.4.2 staging.
  2. Send a user message containing *This is **bold** in italic.*.
  3. Observe that the entire sentence is italicized but the word bold is not bold.
  4. Compare it with an assistant message containing the same Markdown, where the nested bold and italic formatting renders correctly.

Environment

  • Marinara Engine version: 2.4.2 (240be25) staging
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs or attachments provided. The Discord report includes a text-only visual representation comparing assistant and user message rendering.

Additional context

The reporter is unsure whether other nested Discord-style formatting is similarly affected. Discord-style underlining with __text__ appears unsupported in both assistant and user messages; broader formatting support was suggested.

Discord thread: Markdown formatting clash in user prompt
Discord thread link: https://discord.com/channels/1417099416812392641/1536374236401111042
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-10T14:02:42.411Z] Fussel: ME version: 2.4.2 (240be25) staging

I noticed that Marinara Engine right now doesn't seem to support nested markdown (Discord-style) formatting completely in the user's sent prompt inside the chat area.
For example, I can write an italic block of text with some bold words inside an assistants response using asterisks and it's shown correctly formatted.
But when I do the same inside a user message, the bold formatting is overwritten by the italic block.

__Currently__
Example text:
*This is **bold** in italic.*
(How it should look)

Assistant message:
*This is **bold** in italic.*

User message:
*This is bold in italic.*

(Visual representation only)

I don't know if other (Discord-style) markdown formatting in user messages is also being overwritten when inside a formatting block (eg. __underlining__ using two underlines), but this definitely seems wrong. I listed it as a bug report because I don't think this mismatch in formatting is intended.

Edit: It seems Discord-style underlining isn't supported in either assistant nor user message at the moment. On that note, it would be nice to expand upon such possible formatting options further.
[Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536374236401111042]

[2026-08-10T14:07:45.114Z] Fussel: Bug report - Markdown bold and italic formatting clash in user prompt
[Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536375506029772811]

[2026-08-10T14:12:01.833Z] Fussel: Markdown formatting clash in user prompt
[Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536376582787170394]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4866 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Nested Discord-style Markdown renders inconsistently between user and assistant messages. Bold text inside an italic block displays correctly in assistant responses but loses bold formatting in user prompts. ## Expected behavior The user message `*This is **bold** in italic.*` should render with the full sentence italicized and the word `bold` both bold and italic, matching assistant-message rendering. ## Actual behavior In user messages, the outer italic formatting overrides the nested bold formatting, so the word `bold` appears only italicized. The same Markdown renders correctly in assistant messages. ## Steps to reproduce 1. Open a chat in Marinara Engine 2.4.2 staging. 2. Send a user message containing `*This is **bold** in italic.*`. 3. Observe that the entire sentence is italicized but the word `bold` is not bold. 4. Compare it with an assistant message containing the same Markdown, where the nested bold and italic formatting renders correctly. ## Environment - Marinara Engine version: 2.4.2 (240be25) staging - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs or attachments provided. The Discord report includes a text-only visual representation comparing assistant and user message rendering. ## Additional context The reporter is unsure whether other nested Discord-style formatting is similarly affected. Discord-style underlining with `__text__` appears unsupported in both assistant and user messages; broader formatting support was suggested. Discord thread: Markdown formatting clash in user prompt Discord thread link: https://discord.com/channels/1417099416812392641/1536374236401111042 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-10T14:02:42.411Z] Fussel: ME version: 2.4.2 (240be25) staging I noticed that Marinara Engine right now doesn't seem to support nested markdown (Discord-style) formatting completely in the user's sent prompt inside the chat area. For example, I can write an italic block of text with some bold words inside an assistants response using asterisks and it's shown correctly formatted. But when I do the same inside a user message, the bold formatting is overwritten by the italic block. __Currently__ Example text: *This is **bold** in italic.* (How it should look) Assistant message: *This is **bold** in italic.* User message: *This is bold in italic.* (Visual representation only) I don't know if other (Discord-style) markdown formatting in user messages is also being overwritten when inside a formatting block (eg. __underlining__ using two underlines), but this definitely seems wrong. I listed it as a bug report because I don't think this mismatch in formatting is intended. Edit: It seems Discord-style underlining isn't supported in either assistant nor user message at the moment. On that note, it would be nice to expand upon such possible formatting options further. [Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536374236401111042] [2026-08-10T14:07:45.114Z] Fussel: Bug report - Markdown bold and italic formatting clash in user prompt [Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536375506029772811] [2026-08-10T14:12:01.833Z] Fussel: Markdown formatting clash in user prompt [Discord message: https://discord.com/channels/1417099416812392641/1536374236401111042/1536376582787170394] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:53:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
Pasta-Devs/Marinara-Engine#2691
No description provided.