GithubHelp home page GithubHelp logo

dbtek / choo-md-editor Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 303 KB

Markdown Editor built with Choo / for Choo.

Home Page: https://dbtek.github.io/choo-md-editor

License: MIT License

HTML 7.13% JavaScript 81.68% CSS 11.19%

choo-md-editor's Introduction

Choo Markdown Editor Standard - JavaScript Style Guide

Markdown Editor built with Choo / for Choo. It can be used inside a Choo app or as a standalone library.

screenshot

Install

 $ npm i -S choo-md-editor

Usage

choo-md-editor depends on some parts of Bulma styles. If you use Bulma in your project use choo-md-editor.bulma.css instead of whole choo-md-editor.css.

Material Icons are being used please include it's css too.

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Standalone Library

  const element = document.getElementById('editor-container')
  const editor = require('choo-md-editor')
  editor(element, {onChange: (val) => console.info('Markdown changed', val)})

Inside choo app

  app = choo()
  ...
  app.model(require('choo-md-editor/model'))
  ...
  const editor = require('choo-md-editor/component')
  const mainView = (state, prev, send) => {
    html `
      <div>
        $editor(state, send)
      </div>
    `
  }

Credits

Author

İsmail Demirbilek @dbtek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.