Markdown textarea with live HTML preview. This is an AngularJS module. Tested with AngularJS v1.2.6.
bower install angular-markdown-preview
- On your web page include
marked.js
andmarkdown_preview.js
. They were downloaded by bower in the previous step. - Add
evgenyneu.markdown-preview
module to your AngularJS app dependencies or addng-app='evgenyneu.markdown-preview'
attribute in HTML.
<div class='iiMdPreview' />
<div class='iiMdPreview' text='Init text' />
<div class='iiMdPreview' url='/some-url' />
<div class='iiMdPreview' textarea-name='markdown' />
git clone https://github.com/evgenyneu/angular-markdown-preview.git
cd angular-markdown-preview
bower install
- Install Karma if not installed:
npm install karma -g
. Last tested with Karma v0.10.8. - Run the tests:
karma start karma.conf.js