1.0.5 • Published 7 years ago

showdown-cordova-links v1.0.5

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Showdown.js Cordova Links Extension

Introduction

This extension converts creates links that may be opened by the system browser on cordova applications. It does this by replacing any showdown.js generated links with an onclick handler that calls the system browser.

Installation

npm install @kitbrennan90/showdown-cordova-links --save-dev

Including the extension

Simply include the extension in your page. On es6 applications (eg. Ionic), simply add to the top of a script:

import 'showdown-cordova-links'

Enabling the extension

With normal showdown.js

Reference the extension when initalizing showdown

var converter = new showdown.Converter({ extensions: ['cordova-links'] });

With angular-markdown-filter

IF you are using the angular markdown filter extension you may initialise an extension via a config provider:

angular.module('markdown')
  .config(function(markdownProvider) {
    markdownProvider.config({
      extensions: ['cordova-links']
    });
  });
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago