yeast-markdown-parser
Advanced tools
Comparing version 1.4.1-devengage-2533-custom-component-parser.510 to 1.4.1-devengage-2533-custom-component-parser.511
@@ -732,9 +732,3 @@ import { YeastBlockNodeTypes, YeastNodeFactory, ContentGroupType, isYeastNodeType, YeastParser } from 'yeast-core'; | ||
const attribute = attr.slice(2); | ||
const attributeChildren = parser.parseInline(rootNode[p][attr]); | ||
if (attributeChildren.length === 1 && attributeChildren[0]['text']) { | ||
node[attribute] = rootNode[p][attr]; | ||
} | ||
else { | ||
node[attribute] = attributeChildren; | ||
} | ||
node[attribute] = rootNode[p][attr]; | ||
} | ||
@@ -741,0 +735,0 @@ } |
{ | ||
"name": "yeast-markdown-parser", | ||
"version": "1.4.1-devengage-2533-custom-component-parser.510", | ||
"version": "1.4.1-devengage-2533-custom-component-parser.511", | ||
"description": "Parses markdown to yeAST (Yuri's Empathetic Arbitrary Syntax Tree) documents", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -120,9 +120,3 @@ import { BlockParserPlugin, YeastParser, BlockParserPluginResult, YeastNode } from 'yeast-core'; | ||
const attribute = attr.slice(2); //remove prefix "@_" | ||
const attributeChildren = parser.parseInline(rootNode[p][attr]); | ||
//Dont set `parseInline` result to attribute if it's bare text | ||
if (attributeChildren.length === 1 && attributeChildren[0]['text']) { | ||
node[attribute] = rootNode[p][attr]; | ||
} else { | ||
node[attribute] = attributeChildren; | ||
} | ||
node[attribute] = rootNode[p][attr]; | ||
} | ||
@@ -129,0 +123,0 @@ } |
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
162784
3151