You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The other properties of the components object are still private to Prism. By implementing the API in components.js, both browser and NodeJS devs have easy access to it.
Alternatives
Document components.json and declare it to be a part of Prism's public API. Right now, it's considered a private part of Prism, so we could make it public.
This has the obvious downside that changes to components.json might be breaking and it takes a lot of freedom from Prism's core development team.
The text was updated successfully, but these errors were encountered:
Motivation
Libraries sometimes need to know all languages/plugins/etc. Prism supports.
Description
A simple API to:
My suggestion is to make this a part of
components.js
. Something like:The other properties of the
components
object are still private to Prism. By implementing the API incomponents.js
, both browser and NodeJS devs have easy access to it.Alternatives
Document
components.json
and declare it to be a part of Prism's public API. Right now, it's considered a private part of Prism, so we could make it public.This has the obvious downside that changes to
components.json
might be breaking and it takes a lot of freedom from Prism's core development team.The text was updated successfully, but these errors were encountered: