Skip to content

Nested markdown preformatted blocks are not handled in chat rendering #5772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
maximelebastard opened this issue May 21, 2025 · 0 comments
Open
3 tasks done
Assignees
Labels
area:chat Relates to chat interface kind:bug Indicates an unexpected problem or unintended behavior

Comments

@maximelebastard
Copy link

maximelebastard commented May 21, 2025

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.1.32
- IDE version: 1.100.2
- Model: any
- config: 
  
%YAML 1.1
---
version: 1.0.16
schema: v1

bedrock: &bedrock
  provider: bedrock
  env:
    region: eu-central-1
    profile: bedrock

models:
  - name: (aws) Anthropic Claude 3.5 Sonnet
    <<: *bedrock
    model: anthropic.claude-3-5-sonnet-20240620-v1:0
    roles:
      - chat
      - edit
      - apply
  - name: (aws) Anthropic Claude 3.7 Sonnet
    <<: *bedrock
    model: eu.anthropic.claude-3-7-sonnet-20250219-v1:0
    roles:
      - chat
      - edit
  - name: (aws) Anthropic Claude 3 Haiku
    <<: *bedrock
    model: anthropic.claude-3-haiku-20240307-v1:0
    roles:
      - chat
      - autocomplete

  - name: (aws) Cohere Rerank
    <<: *bedrock
    model: cohere.rerank-v3-5:0
    roles:
      - rerank

  - name: (aws) Cohere Embed Multilingual
    <<: *bedrock
    model: cohere.embed-multilingual-v3
    roles:
      - embed
      
  - name: (local) Qwen 2.5 autocomplete
    provider: ollama
    model: qwen2.5-coder:3b
    roles:
      - chat

context:
  - provider: file
  - provider: code
  - provider: open
  - provider: folder
  - provider: clipboard
  - provider: diff
  - provider: terminal
  - provider: docs
  - provider: web
    params:
      n: 5
  - provider: codebase
  - provider: tree
  - provider: url

prompts:
  - name: commit
    description: Create a commit message from staged files
    prompt: "{{input}}"

docs:
  - name: Symfony
    startUrl: https://symfony.com/doc/6.4/index.html

defaultCompletionOptions:
  maxTokens: 4096

raw output: see attached (looks like github does not like a lot nested markdown neither)

rawoutput.md

Description

For some complex questions (ie: terraform or documentation), having a preformatted markdown block into another preformatted markdown block makes the rendering of the chat weird. See above

Image

To reproduce

  1. Ask any question implying having nested preformatted blocks. For the public demo, mine was "Show me nested markdown blocks with nested preformatted blocks" but we experienced it asking to generate README.md files that imply nested terraform commands
  2. The chat does not handle nested preformatted blocks and exits the preformatting rendering too early

Log output

@sestinj sestinj self-assigned this May 21, 2025
@dosubot dosubot bot added area:chat Relates to chat interface kind:bug Indicates an unexpected problem or unintended behavior labels May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:chat Relates to chat interface kind:bug Indicates an unexpected problem or unintended behavior
Projects
Status: Todo
Development

No branches or pull requests

2 participants