Git Product home page Git Product logo

ng-markdown's Introduction

Build Status protractor Coverage Status devDependency Status

NgMarkdown

This module allows you to create a ready-to-use editor based on markdown syntax.

Simply include the dist files, inject the ngMarkdown dependency in your app and add in your template:

<div class="wmd-button-bar"></div>
<ng-markdown ng-model="markdownText"></ng-markdown>
<div class="wmd-preview"></div>

You can also convert directly from a controller by using the get method of the ngMarkdown service

console.log(ngMarkdown.get('**strong**'));

There is also a filter

{{ markdownText | ngMarkdown  }}

And a brand-new preview directive

<ng-markdown-preview ng-model="markdownText"></ng-markdown-preview>

Complete demos and documentation at this address.

#Contributing

See CONTRIBUTING.md.

Syntax Highlight

Using highlight.js. The currently supported languages are : Apache, Bash, C#, C++, CSS, CoffeeScript, Diff, HTML, XML, HTTP, Ini, JSON, Java, JavaScript, Makefile, Markdown, Nginx, Objective C, PHP, Perl, Python, Ruby, SQL, LUA, Delphi, ActionScript, Clojure, Django, Go, Haskell, Lisp, SCSS and Vim Script. If you want support for another language, PM me or open an issue.

#Changelog

See CHANGELOG.md.

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.