Skip to content

andrebuchanan/angular-markdown-directive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

angular-markdown-directive

Original component by btford.

Usage

Static display from content.

<markdown>**This text will be bold**</markdown>

Dynamic update from attribute.

<textarea ng-init="mdSource='**This text will be bold**'" ng-model="{{mdSource}}"></textarea>
<markdown markdown="{{mdSource}}"></markdown>

or

<div markdown="{{mdSource}}"></div>

License

MIT

About

AngularJS markdown directive using Showdown.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%