@microservicios/markdown-widgetlet
v1.0.28
Published
A React component for rendering Markdown, designed to be used as a Micro Frontend via Module Federation.
Readme
Markdown Widgetlet
A React component for rendering Markdown, designed to be used as a Micro Frontend via Module Federation.
Features
- Renders Markdown with GFM support.
- Syntax highlighting.
- Can be consumed as a remote module.
Installation
npm install @microservicios/markdown-widgetletUsage
Module Federation
To use this component as a remote module in your Federated application, configure your host application to consume the remote entry.
Remote Entry URL: https://unpkg.com/@microservicios/markdown-widgetlet/assets/remoteEntry.js
Configuration Example:
"component": {
"remoteUrl": "https://unpkg.com/@microservicios/markdown-widgetlet/assets/remoteEntry.js",
"scope": "remoteApp",
"module": "./MarkdownViewer"
}Local Development
Install dependencies:
yarn installStart the development server:
yarn devBuild for production:
yarn build
