angular-ivonet-markdown
A markdown directive for AngularJS (1.x).
Features
See for an demo this plunker or the example in this project.
Install
install:
bower install angular-ivonet-markdown
or
npm install angular-ivonet-markdown
add to your html:
if you installed the optional dependencies than don't forget to add them to the html:
Start hacking...
Configuration
Please look at the unit tests for examples.
Mandatory Dependencies
bower install highlightjs --savebower install angular-highlightjs --savebower install showdown --savebower install angular-sanitize --save
Optional dependencies
The following dependencies are possible extensions to the standard markdown. Please look at the corresponding project documentation on how to use them.
bower install showdown-github --savebower install showdown-table --savebower install showdown-prettify --savebower install showdown-github --savebower install showdown-twitter --savebower install showdown-target-blank --save
I have included some of these in my example.
Notes:
- the
showdown-target-blank
is broken at this time but I created a pull request after fixing it in my fork. - the
showdown-github
andshowdown-github
have not been updated to the latest dependencies and will give deprecated warnings
License
Acknowledgements
This directive is based on btford's directive. Thanks for the idea I hope I improved on it.