New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@danestves/react-markdown

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@danestves/react-markdown

React component to parse and render Flavored Markdown content

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

npm versionBuild Status

This is forked from React component to parse and render Platzi Flavored Markdown content

react-markdown

React component to parse and render Flavored Markdown content

This component made use of @danestves/markdown to render a content using markdown in a React application.

Usage

Install it with:

npm i -S @danestves/react-markdown

yarn add @danestves/react-markdown

Import it with:

import React from 'react';
import Markdown from '@danestves/react-markdown';

function App() {
  return (
    <Markdown
      tagName='div'
      content='**Hello World in Bold!**'
      parser={
        {
          // @danestves/markdown options
        }
      }
    />
  );
}
  • You cand send any native DOM attribute to the Markdown component.
  • The default tagName is a div.
  • The value of parser is an empty object by default.
  • The content is required.

Run test

You have 4 ways to run tests.

  • npm t: run the test once
  • npm run test:fix: run the test and fix the snapshots
  • npm run test:watch: run the test and keep watching changes
  • npm run test:report: run test and generate a coverage report

Keywords

FAQs

Package last updated on 30 Mar 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc