angular-markdown-preview

AngularJS module for markdown textarea with live HTML preview.
Homepage:
1 person uses it
Author: Assets.github.com%2fimages%2fgravatars%2fgravatar-user-420 evgenyneu

Markdown Preview

Markdown textarea with live HTML preview. This is an AngularJS module.

See demo page

Setup

  • bower install angular-markdown-preview
  • On your web page include marked.js and markdown_preview.js. They were downloaded by bower in the previous step.
  • Add evgenyneu.markdown-preview module to your AngularJS app dependencies or add ng-app='evgenyneu.markdown-preview' attribute in HTML.

Usage

<div class='iiMdPreview' />

Init from text

<div class='iiMdPreview' text='Init text' />

Init from url

<div class='iiMdPreview' url='/some-url' />

Specify textarea's name attribute

<div class='iiMdPreview' textarea-name='markdown' />

Development

Clone the Repo

  • git clone https://github.com/evgenyneu/angular-markdown-preview.git
  • cd angular-markdown-preview
  • npm install
  • bower install -d

Run Tests

  • grunt test

Build

  • grunt

Open test page in browser

  • grunt server
comments powered by Disqus
This page was last updated over 4 years ago.