myst-common
Advanced tools
Comparing version 1.7.5 to 1.7.6
@@ -41,3 +41,5 @@ import type { Plugin } from 'unified'; | ||
'removeInput' = "remove-input", | ||
'removeOutput' = "remove-output" | ||
'removeOutput' = "remove-output", | ||
'skipExecution' = "skip-execution", | ||
'raisesException' = "raises-exception" | ||
} | ||
@@ -44,0 +46,0 @@ export type References = { |
@@ -16,2 +16,4 @@ export var NotebookCell; | ||
NotebookCellTags["removeOutput"] = "remove-output"; | ||
NotebookCellTags["skipExecution"] = "skip-execution"; | ||
NotebookCellTags["raisesException"] = "raises-exception"; | ||
})(NotebookCellTags || (NotebookCellTags = {})); | ||
@@ -18,0 +20,0 @@ // Types for defining roles and directives |
@@ -73,3 +73,3 @@ import { customAlphabet } from 'nanoid'; | ||
if (sourceNode.label) { | ||
if (destNode.label && vfile) { | ||
if (destNode.label && vfile && destNode.label !== sourceNode.label) { | ||
fileWarn(vfile, `label "${destNode.label}" replaced with "${sourceNode.label}"`, { | ||
@@ -79,2 +79,7 @@ node: destNode, | ||
} | ||
if (destNode.label && vfile && destNode.label === sourceNode.label) { | ||
fileWarn(vfile, `duplicate label "${destNode.label}" replacement`, { | ||
node: destNode, | ||
}); | ||
} | ||
destNode.label = sourceNode.label; | ||
@@ -81,0 +86,0 @@ delete sourceNode.label; |
{ | ||
"name": "myst-common", | ||
"sideEffects": false, | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"type": "module", | ||
@@ -23,3 +23,3 @@ "exports": "./dist/index.js", | ||
"mdast": "^3.0.0", | ||
"myst-frontmatter": "^1.7.5", | ||
"myst-frontmatter": "^1.7.6", | ||
"myst-spec": "^0.0.5", | ||
@@ -35,3 +35,3 @@ "nanoid": "^4.0.0", | ||
"devDependencies": { | ||
"myst-spec-ext": "^1.7.5", | ||
"myst-spec-ext": "^1.7.6", | ||
"unist-builder": "3.0.0", | ||
@@ -38,0 +38,0 @@ "@jupyterlab/nbformat": "^3.5.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
67127
1317
Updatedmyst-frontmatter@^1.7.6