myst-transforms
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -191,8 +191,8 @@ import { fileError, fileWarn, liftChildren, normalizeLabel, RuleId, plural } from 'myst-common'; | ||
children.push(placeholderImage); | ||
// Caption/legend are above tables and below all other figures | ||
// Caption is above tables and below all other figures | ||
if (container.kind === 'table') { | ||
if (legend) | ||
children.unshift(legend); | ||
if (caption) | ||
children.unshift(caption); | ||
if (legend) | ||
children.push(legend); | ||
} | ||
@@ -199,0 +199,0 @@ else { |
@@ -399,11 +399,6 @@ import { visit } from 'unist-util-visit'; | ||
return `(%s)`; | ||
switch (kind) { | ||
case 'table': | ||
return `Table %s:`; | ||
case 'code': | ||
return `Program %s:`; | ||
case 'figure': | ||
default: | ||
return `Figure %s:`; | ||
} | ||
if (!kind) | ||
return 'Figure %s:'; | ||
const template = getDefaultNumberedReferenceLabel(kind); | ||
return `${template}:`; | ||
} | ||
@@ -410,0 +405,0 @@ /** Visit all containers and add captionNumber node to caption paragraph |
{ | ||
"name": "myst-transforms", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"sideEffects": false, | ||
@@ -29,6 +29,6 @@ "type": "module", | ||
"mdast-util-find-and-replace": "^2.1.0", | ||
"myst-common": "^1.1.17", | ||
"myst-common": "^1.1.18", | ||
"myst-spec": "^0.0.4", | ||
"myst-spec-ext": "^1.1.17", | ||
"myst-to-html": "1.0.17", | ||
"myst-spec-ext": "^1.1.18", | ||
"myst-to-html": "1.0.18", | ||
"rehype-parse": "^8.0.4", | ||
@@ -35,0 +35,0 @@ "rehype-remark": "^9.1.2", |
Sorry, the diff of this file is not supported yet
162701
3446
+ Addedmyst-to-html@1.0.18(transitive)
- Removedmyst-to-html@1.0.17(transitive)
Updatedmyst-common@^1.1.18
Updatedmyst-spec-ext@^1.1.18
Updatedmyst-to-html@1.0.18