Socket
Socket
Sign inDemoInstall

marky-editor

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marky-editor

A javascript markdown editor


Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

Marky Markdown Editor

A simple Markdown editor build around the awsome CodeMirror Editor.

Example

Install

# include in your package
npm install janstuemmel/marky-editor

# via github
git clone https://github.com/janstuemmel/marky-editor.git
npm install && npm test

# run automatic tests in chrome
TEST_BROWSERS=Chrome gulp test-auto

Usage

// insert css into your html 
// required: node_modules/marky-editor/dist/marky.css
// optional: node_modules/marky-editor/dist/marky.editor.themes.css

var Marky = require('marky-editor');
var marky = new Marky(document.body, '# Hello world');

or look into the example

API

marky.on('marky.editor.change', function() {
  console.log('content changed');
});

Todo

  • tests, tests, tests
  • seperate Editor / Viewer
  • resize split view
  • highlight code inside preview
  • make a proper config module
  • extend api
  • file import/export
  • printing
  • register on npm
  • able to register plugins in the editor
  • mathjax support
  • install eslint
  • markdown templates

Keywords

FAQs

Package last updated on 25 Jun 2016

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