Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-markdown-display

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-markdown-display

Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer), originally created by Mient-jan Stelling as react-native-markdown-renderer

  • 7.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
123K
decreased by-7.92%
Maintainers
1
Weekly downloads
 
Created

What is react-native-markdown-display?

The react-native-markdown-display package is a React Native component for rendering Markdown text. It provides a simple way to display Markdown content in a React Native application, supporting various Markdown features such as headings, lists, links, images, and more.

What are react-native-markdown-display's main functionalities?

Basic Markdown Rendering

This feature allows you to render basic Markdown content, including headings, bold, and italic text.

import Markdown from 'react-native-markdown-display';

const markdownContent = `# Hello World
This is a **bold** text and this is *italic* text.`;

const App = () => (
  <Markdown>{markdownContent}</Markdown>
);

Rendering Lists

This feature allows you to render ordered and unordered lists in Markdown.

import Markdown from 'react-native-markdown-display';

const markdownContent = `# Shopping List
- Apples
- Oranges
- Bananas`;

const App = () => (
  <Markdown>{markdownContent}</Markdown>
);

Rendering Links

This feature allows you to render hyperlinks in Markdown.

import Markdown from 'react-native-markdown-display';

const markdownContent = `[Google](https://www.google.com)`;

const App = () => (
  <Markdown>{markdownContent}</Markdown>
);

Rendering Images

This feature allows you to render images in Markdown.

import Markdown from 'react-native-markdown-display';

const markdownContent = `![React Logo](https://reactjs.org/logo-og.png)`;

const App = () => (
  <Markdown>{markdownContent}</Markdown>
);

Other packages similar to react-native-markdown-display

Keywords

FAQs

Package last updated on 11 Dec 2023

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