diff --git a/lib/transform.mjs b/lib/transform.mjs
index 924972d..12f0b6c 100644
--- a/lib/transform.mjs
+++ b/lib/transform.mjs
@@ -12,7 +12,7 @@ function removeXML(string) {
function styleAst(width) {
return {
type: 'mdxJsxAttributeValueExpression',
- value: `{ minWidth: '${width}' }`,
+ value: `{ maxWidth: '${width}' }`,
data: {
estree: {
type: 'Program',
@@ -30,7 +30,7 @@ function styleAst(width) {
computed: false,
key: {
type: 'Identifier',
- name: 'midWidth',
+ name: 'maxWidth',
},
value: {
type: 'Literal',
diff --git a/package.json b/package.json
index b7da209..d18f65f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "remark-kroki",
- "version": "0.3.3",
+ "version": "0.3.5",
"description": "Remark plugin for showing Kroki diagram",
"license": "MIT",
"author": {
diff --git a/test/snapshots/output.mjs.md b/test/snapshots/output.mjs.md
index b12570f..5aba72a 100644
--- a/test/snapshots/output.mjs.md
+++ b/test/snapshots/output.mjs.md
@@ -169,7 +169,7 @@ Generated by [AVA](https://avajs.dev).
children: [
{
type: 'html',
- value: '',
+ value: '',
},
],
type: 'paragraph',
@@ -178,7 +178,7 @@ Generated by [AVA](https://avajs.dev).
> result
- ''
+ ''
## img-html-base64 | mdx3
@@ -226,7 +226,7 @@ Generated by [AVA](https://avajs.dev).
{
computed: false,
key: {
- name: 'midWidth',
+ name: 'maxWidth',
type: 'Identifier',
},
kind: 'init',
@@ -250,7 +250,7 @@ Generated by [AVA](https://avajs.dev).
},
},
type: 'mdxJsxAttributeValueExpression',
- value: '{ minWidth: \'50%\' }',
+ value: '{ maxWidth: \'50%\' }',
},
},
{
@@ -279,7 +279,7 @@ Generated by [AVA](https://avajs.dev).
> result
- ''
+ ''
## object-base64 | html
@@ -307,13 +307,13 @@ Generated by [AVA](https://avajs.dev).
[
{
type: 'html',
- value: '',
+ value: '',
},
]
> result
- ''
+ ''
## object-base64 | mdx3
@@ -364,7 +364,7 @@ Generated by [AVA](https://avajs.dev).
{
computed: false,
key: {
- name: 'midWidth',
+ name: 'maxWidth',
type: 'Identifier',
},
kind: 'init',
@@ -388,7 +388,7 @@ Generated by [AVA](https://avajs.dev).
},
},
type: 'mdxJsxAttributeValueExpression',
- value: '{ minWidth: \'50%\' }',
+ value: '{ maxWidth: \'50%\' }',
},
},
{
@@ -420,6 +420,6 @@ Generated by [AVA](https://avajs.dev).
> result
- `