New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

markdown-htmlify-react

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-htmlify-react

A React component for converting Markdown input into HTML. This package supports various input sources including URLs, local files, and raw strings. It handles a wide range of Markdown elements such as headings, text, lists, images, videos, audio, and cod

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
100%
Maintainers
0
Weekly downloads
 
Created
Source

markdown-htmlify-react

A React component for converting Markdown input into HTML. This package supports various input sources including URLs, local files, and raw strings. It handles a wide range of Markdown elements such as headings, text, lists, images, videos, audio, and code blocks (JavaScript, Python, shell, etc.).

Features

  • Convert Markdown from multiple sources: URL, local file, or string.
  • Supports various Markdown elements:
    • Headings
    • Text
    • Lists
    • Images
    • Videos
    • Audio
    • Code blocks (JavaScript, Python, shell, etc.)

Installation

To install the package, use npm:

npm install markdown-htmlify-react

Usage

Here is a simple example of how to use the MarkdownConverter component in your React application:

import React from 'react';
import { MarkdownConverter } from 'markdown-htmlify-react';

const App = () => {
  const markdownInput = '# Hello World\nThis is a sample markdown text.';

  return (
    <div>
      <MarkdownConverter input={markdownInput} />
    </div>
  );
};

export default App;

API

MarkdownConverter

  • Props
    • input: The Markdown input which can be a string, URL, or local file path.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

FAQs

Package last updated on 24 Jan 2025

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