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
Many of our services use transformer together with ReactJS and display HTML obtained from transformer inside React-app (usually using dangerouslySetInnerHTML). And each service has its own implementation of this rendering.
Proposal
Create a separate package which contain renderer (bindings) for YFM-HTML inside React-app. This renderer should know about base class name (.yfm) for container, about known modifiers (links-visited and no-list-reset), set default role- and aria- attributes, and so on. It will also may contain any common helpers/utilities/bindings for interacting with content inside React-app (for example, using meta or any other data from transformer).
Package name example: @diplodoc/react
Example of current utils/helpers that should be in this package: firstsecond
Description
Many of our services use transformer together with ReactJS and display HTML obtained from transformer inside React-app (usually using
dangerouslySetInnerHTML
). And each service has its own implementation of this rendering.Proposal
Create a separate package which contain renderer (bindings) for YFM-HTML inside React-app. This renderer should know about base class name (
.yfm
) for container, about known modifiers (links-visited
andno-list-reset
), set default role- and aria- attributes, and so on. It will also may contain any common helpers/utilities/bindings for interacting with content inside React-app (for example, usingmeta
or any other data from transformer).Package name example:
@diplodoc/react
Example of current utils/helpers that should be in this package: first second
Renderer implementation example
The text was updated successfully, but these errors were encountered: