[GH-ISSUE #8101] [Issue]: Issues with HTML rendering and system messages #7559

Closed
opened 2026-10-24 04:04:14 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @FayLi-AI on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8101

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Hi. I was trying to move from SillyTavern and immediately noticed a few issues. Some are hard bugs - broken rendering. A few are more "missing feature" type things.

Expected behavior

  1. Text should render properly.
  2. Code blocks should not trigger HTML rendering changes.
  3. After a dialogue line is recolored, the font should return to the system/theme color, not black.
  4. System messages should parse markdown, HTML, and recognize newlines
  5. System messages should not have a weird shape behind them, and should instead have a message-style background block.
  6. System messages should be able to be branched, checkpointed, edited, etc
  7. All messages (system, user, AI) should be reorder-able.

Actual behavior

Image
  1. Text in the markdown code block:
7. Dialogue uses `<font color="#HEX">` per NPC

parsed as HTML.

  1. System font color changed to black after end of the font block, resulting in unreadable text.
Image
  1. System message block renders with odd background
  2. System message block does not recognize newlines
Image
  1. System message block does not parse markdown, HTML, etc
  2. System message block cannot be edited, or be used as a branch point, etc (only trash icon appears)

Steps to reproduce

  1. Paste in a markdown-formatted handoff summary with color guides in markdown code blocks.
  2. Paste the same summary in a /system message. Note that markdown, HTML, and newlines are ignored.
  3. Include HTML formatting, for example:
<!-- GFX_START -->
<internal_states>
<details>
  <summary>🎬 INTERNAL STATES (Turn: 3)</summary>
  <details>
    <summary>🧠 INTERNAL THOUGHTS</summary>
    - <b>Code Gremlin</b> | Boo!
  </details>
</details>
</internal_states>
<!-- GFX_END -->

Environment

  • Marinara Engine version: 2.5.1
  • Install type: (source / installer / docker / termux / other) Windows Installer
  • OS + version: OS Name Microsoft Windows 11 Pro Version 10.0.26200 Build 26200
  • Browser or app shell: Firefox Version 158.0.1 (64-bit)

Logs, screenshots, or video

See above

Additional context

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 @FayLi-AI on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8101 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Hi. I was trying to move from SillyTavern and immediately noticed a few issues. Some are hard bugs - broken rendering. A few are more "missing feature" type things. ## Expected behavior 1. Text should render properly. 2. Code blocks should not trigger HTML rendering changes. 3. After a dialogue line is recolored, the font should return to the system/theme color, not black. 4. System messages should parse markdown, HTML, and recognize newlines 5. System messages should not have a weird shape behind them, and should instead have a message-style background block. 6. System messages should be able to be branched, checkpointed, edited, etc 7. All messages (system, user, AI) should be reorder-able. ## Actual behavior <img width="1394" height="183" alt="Image" src="https://github.com/user-attachments/assets/5a77da3c-9296-4d97-86e9-fcc9bb53903a" /> 1. Text in the markdown code block: ``` 7. Dialogue uses `<font color="#HEX">` per NPC ``` parsed as HTML. 2. System font color changed to black after end of the font block, resulting in unreadable text. <img width="1604" height="612" alt="Image" src="https://github.com/user-attachments/assets/b361718d-2531-4b1b-988f-cdeff7e776e9" /> 3. System message block renders with odd background 4. System message block does not recognize newlines <img width="1046" height="385" alt="Image" src="https://github.com/user-attachments/assets/39fa0760-2be2-46b1-9dd6-3214c186034c" /> 5. System message block does not parse markdown, HTML, etc 6. System message block cannot be edited, or be used as a branch point, etc (only trash icon appears) ## Steps to reproduce 1. Paste in a markdown-formatted handoff summary with <front> color guides in markdown code blocks. 2. Paste the same summary in a /system message. Note that markdown, HTML, and newlines are ignored. 3. Include HTML formatting, for example: ``` <!-- GFX_START --> <internal_states> <details> <summary>🎬 INTERNAL STATES (Turn: 3)</summary> <details> <summary>🧠 INTERNAL THOUGHTS</summary> - <b>Code Gremlin</b> | Boo! </details> </details> </internal_states> <!-- GFX_END --> ``` ## Environment - Marinara Engine version: 2.5.1 - Install type: (source / installer / docker / termux / other) Windows Installer - OS + version: OS Name Microsoft Windows 11 Pro Version 10.0.26200 Build 26200 - Browser or app shell: Firefox Version 158.0.1 (64-bit) ## Logs, screenshots, or video See above ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## 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-24 04:04:14 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Hey, it looks like you're using some sort of preset (Freaky Frankenstein, I assume?) which isn't supported by the Marinara Engine in its original rendition. Please check our Discord server for popular presets re-made to work with our regex system. SillyTavern doesn't format HTML formatting you posted on its own either; it's all a matter of regexes and right extensions.

As for system messages, I honestly forgot we have those. 💀 I'll make them work.

Image

As for messages processing, that's in Advanced Parameters. Forgot to mention.

<!-- gh-comment-id:6348161084 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Hey, it looks like you're using some sort of preset (Freaky Frankenstein, I assume?) which isn't supported by the Marinara Engine in its original rendition. Please check our Discord server for popular presets re-made to work with our regex system. SillyTavern doesn't format HTML formatting you posted on its own either; it's all a matter of regexes and right extensions. As for system messages, I honestly forgot we have those. 💀 I'll make them work. <img width="838" height="311" alt="Image" src="https://github.com/user-attachments/assets/70d709a5-07e9-4948-a659-8944c0469bfd" /> As for messages processing, that's in Advanced Parameters. Forgot to mention.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Taking ownership as @SpicyMarinara / Codex at the maintainer’s request. I found no existing linked branch or PR. I am tracing the fenced-code/HTML interaction and the dedicated system-message renderer, then checking the existing edit/branch/checkpoint paths before implementing a focused fix. The separate fenced-code wrapping change is tracked in #8103 / PR #8104.

<!-- gh-comment-id:6348191502 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Taking ownership as @SpicyMarinara / Codex at the maintainer’s request. I found no existing linked branch or PR. I am tracing the fenced-code/HTML interaction and the dedicated system-message renderer, then checking the existing edit/branch/checkpoint paths before implementing a focused fix. The separate fenced-code wrapping change is tracked in #8103 / PR #8104.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Scope clarification from the maintainer: the message post-processing request is already covered by Advanced Parameters → Post-Processing Messages. I will keep that existing mechanism. The fix is being developed in draft PR #8107: readable system-message blocks, formatting and existing message actions, plus literal-code protection. Preset-specific custom tags still need compatible regex/preset setup as noted above.

<!-- gh-comment-id:6348320339 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Scope clarification from the maintainer: the message post-processing request is already covered by Advanced Parameters → Post-Processing Messages. I will keep that existing mechanism. The fix is being developed in draft PR #8107: readable system-message blocks, formatting and existing message actions, plus literal-code protection. Preset-specific custom tags still need compatible regex/preset setup as noted above.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Fixed on staging by #8107 (2e5fee7e94). System messages now render within the transcript width, honor the chat font size and use the existing message controls. Literal backticked HTML is protected in chat and Bot Browser notes. All eight required checks passed; Dottore reviewed the exact merged head as Viable, With Notes with zero defects. The maintainer confirmed the processing request is already covered by Advanced Parameters → Post-Processing Messages. Browser coverage and remaining physical-device/Windows-Firefox verification limits are documented in the PR.

<!-- gh-comment-id:6349929399 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Fixed on staging by #8107 (2e5fee7e945e9256c7503bef4d117478788a941f). System messages now render within the transcript width, honor the chat font size and use the existing message controls. Literal backticked HTML is protected in chat and Bot Browser notes. All eight required checks passed; Dottore reviewed the exact merged head as Viable, With Notes with zero defects. The maintainer confirmed the processing request is already covered by Advanced Parameters → Post-Processing Messages. Browser coverage and remaining physical-device/Windows-Firefox verification limits are documented in the PR.
Author
Owner

@FayLi-AI commented on GitHub (Oct 22, 2026):

Hi. Thanks for the quick fix, will look forward to seeing it. I do know FF relies on regexes and CSS and so on to pretty things up, but these issues didn't seem to be related.

There's just one last thing. ST offers the ability to reorder messages and it's sometimes useful to be able to permanently insert something at depth or retcon something in the narrative.

Image

Would it be possible to have this in Marinara too?

Thank you.

<!-- gh-comment-id:6351000126 --> @FayLi-AI commented on GitHub (Oct 22, 2026): Hi. Thanks for the quick fix, will look forward to seeing it. I do know FF relies on regexes and CSS and so on to pretty things up, but these issues didn't seem to be related. There's just one last thing. ST offers the ability to reorder messages and it's sometimes useful to be able to permanently insert something at depth or retcon something in the narrative. <img width="1170" height="246" alt="Image" src="https://github.com/user-attachments/assets/ecca2a3b-be5a-4595-96f5-6711381bb818" /> Would it be possible to have this in Marinara too? Thank you.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Given how much metadata we append to each message, especially if agents or advanced memory systems are attached to a chat, I don't think it will work well with our backend. But you can already hide messages from all or selected AI characters with the little eye icon under a message. We also have Author's Notes (in Chat Settings), and Personal notes and Bookmarks (bookmark icon under a message), plus other features to control what message goes where at which depth.

<!-- gh-comment-id:6352669519 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Given how much metadata we append to each message, especially if agents or advanced memory systems are attached to a chat, I don't think it will work well with our backend. But you can already hide messages from all or selected AI characters with the little eye icon under a message. We also have Author's Notes (in Chat Settings), and Personal notes and Bookmarks (bookmark icon under a message), plus other features to control what message goes where at which depth.
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#7559
No description provided.