Skip to content

syntax highlighting breaks on escaped characters #8188

@dnsbty

Description

@dnsbty

Which Fern component?

Fern Docs

How urgent is this?

P3 - Low (Nice to have)

What's the issue?

Steps to reproduce:

  1. Create an endpoint in OpenAPI schema that takes a JSON body
  2. Add an example for the endpoint that uses a single quote character
  3. Generate Fern docs

Expected: The syntax highlighting for the cURL request looks correct
Actual: The syntax higlighting for the cURL request breaks on the escaped single quote character

Image

Fern CLI & Generator Versions

Fern CLI version: v0.65.19

Workaround

No response

Are you interested in contributing a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions