Skip to content

Add annotation in produced HTML for the language used #239

Closed
@pomber

Description

@pomber

Discussed in #238

Originally posted by colelawrence July 26, 2022
I am building a docs site with contentful and I would like to be able to see what language was actually used to produce the React .ch-code-scroll-parent element. Something like a data-ch-language="ts" would be extraordinary for my use-case, where I need to be able to read code blocks off of my own page coming out of the MDX content, so I can insert their source code contents into a demo iframe.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions