code-hike / codehike

Marvellous code walkthroughs
https://codehike.org
MIT License
4.41k stars 136 forks source link

Add annotation in produced HTML for the language used #239

Closed pomber closed 1 year ago

pomber commented 1 year ago

Discussed in https://github.com/code-hike/codehike/discussions/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!
github-actions[bot] commented 1 year ago

:rocket: Issue was released in v0.7.3 :rocket: