Skip to content

bug: Markdown code blocks and lists are not converted to rendered elements when they do not appear as the first text #229

Description

@JKGeovision

Hello,

I discovered that in the Open Computer chatbox, markdown elements such as code blocks and lists are not converted into the correct rendered element when they do not appear as the first text in a message, and that markdown symbols inside code (such as _ or backticks) are interpreted as markdown formatting instead of raw text.

Steps to reproduce:

  1. Open a new conversation in Open Computer.
  2. Type some text (e.g., abc) and press Enter to move to a new line.
  3. Type ``` to start a code block.
  4. Observe that no code block element is created. Instead, the ``` is displayed as raw text inside the chatbox.
  5. Include markdown symbols such as _ or backticks within the code.
  6. Observe that these symbols are interpreted as markdown formatting rather than being treated as raw text.
  7. Note that the same markdown elements render correctly when they appear as the first text in the message.

The attached screenshots demonstrate the issue.
Image
Image

Thank you for your time and for maintaining this project.

Best regards,
Joshua Krimmer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions