All Projects → kunall17 → React Native Markdown Editor

kunall17 / React Native Markdown Editor

Licence: mit
A markdown editor like github comment editor (contains preview, helper buttons)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Markdown Editor

Atom Modular Snippets
:atom: A modular solution to snippets in @Atom.
Stars: ✭ 8 (-86.44%)
Mutual labels:  package, editor
Manuskript
A open-source tool for writers
Stars: ✭ 960 (+1527.12%)
Mutual labels:  markdown, editor
Typac
install npm packages along with corresponding typings
Stars: ✭ 29 (-50.85%)
Mutual labels:  package, npm
Showdown Htmlescape
Plugin for Showdown to prevent the use of arbitrary HTML and allow only the specific Markdown syntax.
Stars: ✭ 6 (-89.83%)
Mutual labels:  markdown, npm
React Native Markdown Package
React native markdown package is a Library for implementing markdown syntax in React Native
Stars: ✭ 50 (-15.25%)
Mutual labels:  markdown, package
Snm
🤏 Smol Node Manager written in Rust
Stars: ✭ 24 (-59.32%)
Mutual labels:  package, npm
Gub
CLI tool for create an npm package from any repos. 🐳
Stars: ✭ 31 (-47.46%)
Mutual labels:  package, npm
Lerna
Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories becomes complicated very quickly.
Stars: ✭ 31,079 (+52576.27%)
Mutual labels:  package, npm
Npm Git Install
Clones and (re)installs packages from remote git repos. See npm/npm#3055
Stars: ✭ 49 (-16.95%)
Mutual labels:  package, npm
Thiefmd
The markdown editor worth stealing. Inspired by Ulysses, based on code from Quilter
Stars: ✭ 48 (-18.64%)
Mutual labels:  markdown, editor
Vue Simplemde
📝 Vue SimpleMDE - use simplemde with vue.js
Stars: ✭ 730 (+1137.29%)
Mutual labels:  markdown, editor
O
🌀 Text editor suitable for writing git commit messages and editing Markdown files. Can build executables and jump to errors at the press of `ctrl-space`, for several programming languages. Can format code with `ctrl-w`. Provides general syntax highlighting, rainbow parenthesis and cut/paste portals. o is intentionally limited to VT100.
Stars: ✭ 54 (-8.47%)
Mutual labels:  markdown, editor
Stackedit.js
Add StackEdit to any website
Stars: ✭ 724 (+1127.12%)
Mutual labels:  markdown, editor
Unitycopylightingsettings
Unity editor extension to copy&paste lighting settings from one scene to another.
Stars: ✭ 25 (-57.63%)
Mutual labels:  package, editor
Electron Markdownify
📕 A minimal Markdown editor desktop app
Stars: ✭ 700 (+1086.44%)
Mutual labels:  markdown, editor
Sao Nm
Scaffold out a node module.
Stars: ✭ 30 (-49.15%)
Mutual labels:  package, npm
Django Markdownx
Comprehensive Markdown plugin built for Django
Stars: ✭ 657 (+1013.56%)
Mutual labels:  markdown, editor
Oji
(◕‿◕) Text Emoticons Maker
Stars: ✭ 668 (+1032.2%)
Mutual labels:  package, npm
Nasa Cli
🚀 Download NASA Picture of the Day from your terminal!
Stars: ✭ 45 (-23.73%)
Mutual labels:  package, npm
Canner Slate Editor
📝Rich Text / WYSIWYG Editor built for Modularity and Extensibility.
Stars: ✭ 1,071 (+1715.25%)
Mutual labels:  markdown, editor

react-native-markdown-editor

npm version Build Status

This is a library for rendering a markdown editor for the markdown with helper buttons to easily write markdown. With live preview markdown as well (thanks to https://github.com/Benjamin-Dobell/react-native-markdown-view)

Index

Getting Started

Install the node module:

yarn add react-native-markdown-editor

or with npm:

npm install --save react-native-markdown-editor

Then see Usage for futher details

Screenshots

Screenshot:

Features

  • Multiline textinput for writing markdown
  • Live preview of the markdown written (can be hidden)
  • Helper buttons to write the syntax for the markdown (like github)
Markdown where editor helps (in order for the default format)

Bold Text

Italic Text

Underline text

Strikethrough

Inline code

  • Item 1
  • Item 2

Url Links:

GitHub

function codeExample(arg) {
}

This is an < h1 > tag

Usage

Import the editor through

import { MarkdownEditor } from 'react-native-markdown-editor';

And use like this this in the jsx

<MarkdownEditor />

And pass a function onMarkdownChange which will be callback when markdown is changed

 <MarkdownEditor onMarkdownChange={this.onTextChange} />

It can be used with a toolbar and have a submit menu option there!

Customizing

Your own custom formats

You can give a custom list of buttons you want to give the default is Formats by speicifying

   <MarkdownEditor Formats={YOUR_CUSTOM_Formats} />

Customize the helper button

You can customize the helper button using the markdownButton prop. The buttons are rendered using a FlatList and the data passed is the Formats

markdownButton can be method like

const defaultMarkdownButton = ({ item, getState, setState }) =>
  <Button
    title={item.key}
    onPress={() => item.onPress({ getState, setState, item })}
    color={FOREGROUND_COLOR}
    style={inlinePadding}
  />

Where item is an each object in the Formats list

You can also import the methods used in Formats by using

import { applyWrapFormatNewLines, applyWrapFormat, applyWebLinkFormat, applyListFormat } from 'react-native-markdown-editor';

Customize the renderButton styles

You can add a style key in the Formats.js and this will be used while rendering the button

{ key: 'B', wrapper: '**', onPress: applyWrapFormat, style: { fontWeight: 'bold' } },

Props

Name Type Default Description
Formats Array Formats Elements for the markdown buttons
markdownButton function defaultMarkdownButton A custom function to render the markdown buttons
onMarkdownChange function Callback function, calls when markdown is typed
showPreview boolean false To show the markdown preview by Default

Contributing

PR's/Issues/Bugs or suggestions are welcomed. Please post them at https://github.com/kunall17/react-native-markdown-editor/issues.

License

The MIT License.

See LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].