Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Mar 5, 2024
1 parent ed934f7 commit 1b9bc26
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/transform.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function removeXML(string) {
function styleAst(width) {
return {
type: 'mdxJsxAttributeValueExpression',
value: `{ minWidth: '${width}' }`,
value: `{ maxWidth: '${width}' }`,
data: {
estree: {
type: 'Program',
Expand All @@ -30,7 +30,7 @@ function styleAst(width) {
computed: false,
key: {
type: 'Identifier',
name: 'midWidth',
name: 'maxWidth',
},
value: {
type: 'Literal',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading

0 comments on commit 1b9bc26

Please sign in to comment.