@shogobg/markdown2confluence
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -1,3 +0,2 @@ | ||
const {options} = require('marked'); | ||
const marked = require('marked'); | ||
const {options, marked} = require('marked'); | ||
const qs = require('querystring'); | ||
@@ -57,3 +56,4 @@ | ||
html: function (text) { | ||
const regex = /<([\w]+)\s*[\w=]*"?([\/:\s\w=\-@\.\&\?\%]*)"?>([\/:\s\w.!?\\<>\-]*)(<\/\1>)?/gi; | ||
const regex = | ||
/<([\w]+)\s*[\w=]*"?([\/:\s\w=\-@\.\&\?\%]*)"?>([\/:\s\w.!?\\<>\-]*)(<\/\1>)?/gi; | ||
@@ -420,5 +420,5 @@ // We need special handling for anchors | ||
return marked(markdown.toString()); | ||
return marked.parse(markdown.toString()); | ||
}; | ||
module.exports = markdown2confluence; |
{ | ||
"name": "@shogobg/markdown2confluence", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Convert Markdown to Confluence markup", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"marked": "^2.0.0" | ||
"marked": "^4.0.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "engines": { |
34801
+ Addedmarked@4.3.0(transitive)
- Removedmarked@2.1.3(transitive)
Updatedmarked@^4.0.0