Skip to content

Don't render URL previews for URLs in Code (inline/blocks) #587

@Just-Insane

Description

@Just-Insane

Describe the bug

When a URL is in a code tag (either inline or a code block), we still render a URL preview.

Reproduction

  • Use either ` or ``` code tags, with a link inside the tag
  • See that a URL preview is generated
Image

Expected behavior

URL preview should not be generated.

Platform and versions

- OS: MacIntel
- Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
- Sable: v1.13.0-dev (615bc06)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/behaviourbehaviour bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions