Comparing version 1.1.20 to 1.1.21
@@ -49,3 +49,3 @@ var through = require('through3') | ||
// handle documet nodes | ||
// handle document nodes | ||
if(isDocument) { | ||
@@ -55,4 +55,3 @@ | ||
if(!this.doc) { | ||
this.doc = Node.createDocument(); | ||
this.doc = Node.createDocument(chunk._sourcepos, chunk); | ||
// append children of nested document | ||
@@ -59,0 +58,0 @@ }else{ |
@@ -64,4 +64,5 @@ var Node = require('commonmark/lib/node'); | ||
*/ | ||
function createDocument(sourcepos) { | ||
return new AstNode(AstNode.DOCUMENT, sourcepos || [[1, 1], [0, 0]]); | ||
function createDocument(sourcepos, attrs) { | ||
return AstNode.createNode( | ||
AstNode.DOCUMENT, attrs, sourcepos || [[1, 1], [0, 0]]); | ||
} | ||
@@ -68,0 +69,0 @@ |
{ | ||
"name": "mkast", | ||
"version": "1.1.20", | ||
"version": "1.1.21", | ||
"description": "Abstract syntax tree transformer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26692
739