All Projects → evgenyneu → angular-markdown-preview

evgenyneu / angular-markdown-preview

Licence: other
AngularJS module for markdown textarea with live HTML preview.

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Markdown Preview

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

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
  • bower install

Run Tests

  • Install Karma if not installed: npm install karma -g. Last tested with Karma v0.10.8.
  • Run the tests: karma start karma.conf.js
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].