@markdoc/markdoc
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -11,3 +11,3 @@ // src/tag.ts | ||
Tag.isTag = (tag) => { | ||
return "$$mdtype" in tag && tag.$$mdtype === "Tag"; | ||
return !!(tag?.$$mdtype === "Tag"); | ||
}; | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "@markdoc/markdoc", | ||
"author": "Ryan Paul", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A text markup language for documentation", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -10,3 +10,3 @@ import type { RenderableTreeNode } from './types'; | ||
static isTag = (tag: any): tag is Tag => { | ||
return '$$mdtype' in tag && tag.$$mdtype === 'Tag'; | ||
return !!(tag?.$$mdtype === 'Tag'); | ||
}; | ||
@@ -13,0 +13,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1843437
121
24757