Giter Club home page Giter Club logo

angular-md's Introduction

angular-md Analytics

Angular directive to render Markdown text. It's built on blazingly fast markdown parser marked.

Demo

Check out the demo here.

Usage

Include angular-md.js in your project (you can do so via bower install angular-md).

Make sure to load marked library. Optionally, load highlightjs library (as well as the corresponding css file) for code highlighting. Load the directive after loading angular.js

<script src="path_to_marked.js"></script>
<script src="path_to_highlightjs.js"></script>
<script src="path_to_angular.js"></script>
<script src="path_to_angular-md.js"></script>

Specify angular-md as a dependency of your Angular module.

var app = angular.module('ngApp', [
  'yaru22.md'
]);

Use it in your project.

<html ng-app="ngApp">
...
<body>
  <md>
# How to use angular-md
This is a example of how to use angular-md.

- Bullet point 1.
- Bullet point 2.

> To use or not to use...
> - Anonymous
  </md>

  <!-- or -->
  
  <md ng-include="'text.md'"></md>
  
  <!-- or -->
  
  <md ng-model="mdText"></md>
</body>
</html>

License

This seed is released under permissive MIT License.

angular-md's People

Contributors

yaru22 avatar

Watchers

James Cloos avatar Robert Hodgen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.