Skip to content

[Bug] #404

@amitkeinan9

Description

@amitkeinan9

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

When using EditableMessage with markdown elements and using ignore-markdown-style to disable the styling for a specific element - all of the siblings lose the markdown styling as well.

root: css`
      :not(:has(${IGNORE_CLASSNAME})),
      .markdown {
        ${[
          __root,
          a,
          blockquote,
          code,
          del,
          details,
          header,
          hr,
          img,
          list,
          p,
          pre,
          strong,
          svg,
          table,
          video,
          footnote,
          sub,
          sup,
        ]}
      }
    `,

This rule stop working when at least one child has the ignore class

🚦 期望结果 | Expected Behavior

Only the child with the ignore class should be ignored, the rest should still get the styling

📷 复现步骤 | Recurrence Steps

  1. Override some components in the markdown prompt
  2. Add the ignore style class to one of the components
  3. Render the message with the components and see how the styling is changed

📝 补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactiveNo response in 30 days | 超过 30 天未活跃🐛 BugSomething isn't working | 缺陷

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions