shikijs / twoslash

You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
https://shikijs.github.io/twoslash/
MIT License
1.06k stars 51 forks source link

Allow style attributes in fence meta #185

Open LachlanArthur opened 1 year ago

LachlanArthur commented 1 year ago

Slightly refactored the attribute rendering for <pre> tags to allow style attributes to be passed in the fence meta.

All attribute values are now also escaped correctly.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 6d7ab1eae336470c99e1c83a237da75a84f8ae5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR