Skip to content

Fix markdown parser handling of escaped backticks #265

Description

@exedev-shelley

Author: redbeard0531
Channel: #shelley
Link: https://discord.com/channels/1405685085923049482/1450334528210993295/1539715811122487517


Issue

The markdown parser doesn't handle escaped backticks correctly.

Example

The `Ran \`cmd\`` opener, the fenced output, and the `[Output truncated...]` footer are what Pi injects into the LLM's context for every bash call, on top of the raw tool result.

The escaped backticks within inline code blocks are not being parsed properly.

Attachments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions