FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.88k stars 153 forks source link

expose useGetLineProps, useGetTokenProps, useThemeDictionary #249

Open acharyakavita opened 2 months ago

acharyakavita commented 2 months ago

Description

Exposing the below usehooks for users and update documentation for the same

  1. useGetLineProps,
  2. useGetTokenProps,
  3. useThemeDictionary

Fixes # (issue) : https://github.com/FormidableLabs/prism-react-renderer/issues/246

Type of Change

How Has This Been Tested?

Checklist: (Feel free to delete this section upon completion)

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 293dc232c89d415b6be4d52657faba64fa1fbb30

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | prism-react-renderer | Minor |

Not sure what this means? Click here to learn what changesets are.

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