We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c8974 commit e09556eCopy full SHA for e09556e
lib/markdownit-directive.js
@@ -1,14 +1,12 @@
1
'use strict';
2
3
-var angular = require('angular');
4
-
5
angular.module('macedigital.markdownit', ['ngSanitize'])
6
.provider('markdownItConverter', function() {
7
var defaults = {};
8
9
return {
10
config: function(options) {
11
- defaults = options;
+ defaults = options || {};
12
},
13
$get: function() {
14
return markdownit(defaults);
package.json
@@ -1,6 +1,6 @@
{
"name": "angular-markdown-it",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "Angular directive for rendering markdown with markdown-it.",
"repository": {
"type": "git",
0 commit comments