Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@s-ui/react-services-markdown
Advanced tools
Allows you to fetch an external markdown file and show it parsed in your React application. Keep in mind this functionality doesn't offer server-side rendering, so your Markdown content will be loaded only in the client.
Allows you to fetch an external markdown file and show it parsed in your React application. Keep in mind this functionality doesn't offer server-side rendering, so your Markdown content will be loaded only in the client.
For the sake of the performance, it asynchronously loads the needed dependencies in order to be optimized for your bundle.
If you wish to add styling to the parsed markdown, you should wrap this component with another element with a className that will allow you to style it pointing directly to the descendant HTML elements.
$ npm install @s-ui/react-services-markdown --save
import ServiceMarkdown from '@s-ui/react-services-markdown'
return (
<article className='myMarkdownFile'>
<ServiceMarkdown src="https://mycdn.com/myfile.md"/>
</article>
)
@import '~@s-ui/theme/lib/index';
.myMarkdownFile {
padding: $p-l;
p {
color: $c-gray;
font-size: $fz-m;
}
}
Find full description and more examples in the demo page.
FAQs
Allows you to fetch an external markdown file and show it parsed in your React application. Keep in mind this functionality doesn't offer server-side rendering, so your Markdown content will be loaded only in the client.
We found that @s-ui/react-services-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 63 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.