Skip to content

Commit e09556e

Browse files
committed
fix: remove erroneous require call
1 parent 63c8974 commit e09556e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/markdownit-directive.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
'use strict';
22

3-
var angular = require('angular');
4-
53
angular.module('macedigital.markdownit', ['ngSanitize'])
64
.provider('markdownItConverter', function() {
75
var defaults = {};
86

97
return {
108
config: function(options) {
11-
defaults = options;
9+
defaults = options || {};
1210
},
1311
$get: function() {
1412
return markdownit(defaults);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-markdown-it",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Angular directive for rendering markdown with markdown-it.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)