Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-github-markdown
Advanced tools
Readme
Generate GitHub Flavored Markdown (with syntax highlight) using React Native WebView.
Screenshot 📱 👇
Render GitHub Flavored Markdown on your React Native WebView.
Auto-height WebView adjusted to the document.
Code syntax highlighting.
Dark mode!
npm i react-native-github-markdown
or
yarn add react-native-github-markdown
Your React Native configuration should support react-native-webview
.
import MarkdownWebView from 'react-native-github-markdown';
<MarkdownWebView
style={{marginTop: 10}}
content={'# React Native Github Markdown\n\nHello world!'}
highlight
darkMode
/>;
defaultHeight
: default height when the actual height has not been computed.content
: raw markdown content to render.highlight
: whether to use highlight.js
for syntax highlighting.darkMode
: whether to set rendered results in dark mode.WebViewProps
: same as react-native-webview
's.highlight.js
. You can choose to disable it using the highlight
prop.Markdown generated by marked and use DOMPurify for sanitizing.
Syntax highlighted by highlight.js.
CSS from GitHub's Primer and highlight.js
.
Dark mode applied by darkreader.
FAQs
Generate GitHub Flavored Markdown (with syntax highlight) using React Native WebView
The npm package react-native-github-markdown receives a total of 28 weekly downloads. As such, react-native-github-markdown popularity was classified as not popular.
We found that react-native-github-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.