npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

markdown-it-rn

v0.2.3

Published

rn markdown it wrapper using nativewind by default

Readme

markdown-it-rn

React Native renderer for markdown-it with customizable styling using React Native's StyleSheet.

Why This Library?

Modern alternative to react-native-markdown-display (no longer maintained).

✅ Actively maintained • Modern RN compatibility • Flexible styling • TypeScript support • Lightweight

Install

npm i markdown-it-rn
# peer deps expected in your app:
npm i react react-native

Usage

import { MarkdownItRN } from 'markdown-it-rn';

// Basic
<MarkdownItRN md="# Hello World" />

// With custom styles
<MarkdownItRN
  md="# Styled"
  styles={{
    h1: { fontSize: 24, color: '#2563eb' },
    paragraph: { color: '#374151' }
  }}
  onLinkPress={(href) => Linking.openURL(href)}
/>

// With plugins
<MarkdownItRN
  md=":smile: emoji"
  configure={(md) => md.use(emoji)}
/>

API

| Prop | Type | Default | Description | | ------------- | -------------------------------- | ------- | ------------------------------ | | md | string | - | Markdown string | | styles | StyleMap | {} | Style overrides | | onLinkPress | (href: string) => void | - | Link tap handler | | configure | (md: MarkdownIt) => MarkdownIt | - | Configure markdown-it instance | | autoUnfence | boolean | true | Unwrap ```md fenced blocks |

Styling

Override any element with the styles prop:

<MarkdownItRN
  md="# Hello"
  styles={{
    root: { padding: 16, backgroundColor: 'white' },
    h1: { fontSize: 24, color: '#2563eb' },
    paragraph: { color: '#374151', lineHeight: 24 },
  }}
/>

Available Style Keys

Text: paragraph, break, strong, em, strikethrough
Headings: h1-h6
Links & Media: link, image
Code: codeBlockContainer, codeBlockText, codeInline
Blocks: blockquote, hr
Lists: listUl, listOl, listItem, listBullet, listContent
Tables: tableContainer, tableThead, tableTbody, tableRow, tableTh, tableTd, tableThText, tableTdText
Checklists: checklistList, checklistItem, checklistBox, checklistChecked, checklistUnchecked, checklistLabel
Footnotes: footnotesContainer, footnotesItem, footnotesRef, footnotesBackref
Definition Lists: deflistContainer, deflistRow, deflistDt, deflistDd

Dark Theme Example

<MarkdownItRN
  md={markdown}
  styles={{
    root: { backgroundColor: '#111827', padding: 16 },
    paragraph: { color: '#f3f4f6' },
    h1: { color: '#ffffff', fontSize: 24 },
    link: { color: '#60a5fa' },
    codeBlockContainer: { backgroundColor: '#1f2937' },
    codeBlockText: { color: '#10b981', fontFamily: 'monospace' },
  }}
/>

Plugins

Minimal core, install only what you need:

npm i markdown-it-emoji
import { full as emoji } from 'markdown-it-emoji';

<MarkdownItRN
  md={markdown}
  configure={(md) => md.use(emoji).set({ linkify: true, typographer: true })}
/>;

Built-in: Footnotes, definition lists, task lists (- [ ], - [x])
Available: Emoji, tables, and other markdown-it plugins
Note: Raw HTML is ignored, plugins using HTML won't work

Features

✅ Headings, paragraphs, bold, italic, ~~strikethrough~~
Links, images, code, code blocks
✅ Lists, tables, > blockquotes, horizontal rules
✅ Task lists, footnotes, definition lists
✅ Emoji support (with plugin)

NativeWind Support

cd example && npm install && npm start
import { cssInterop } from 'nativewind';

const NativewindMarkdownItRN = cssInterop(MarkdownItRN, {
  rootClassName: { target: 'root' },
  h1ClassName: { target: 'h1' },
  paragraphClassName: { target: 'paragraph' },
  // ... map other styles
});

<NativewindMarkdownItRN
  md={markdown}
  rootClassName="p-3 gap-2"
  h1ClassName="text-4xl font-extrabold"
  paragraphClassName="leading-relaxed mb-3"
/>;

Contributing

🐛 Report issues • 💡 Suggest features • 🔧 Submit PRs

npm install
cd example && npm install && npm start
npm run lint

License

MIT