Skip to content

Commit 02e034c

Browse files
committed
fix(plugin-tikz): default value for center property
1 parent 7659d3b commit 02e034c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-tikz/src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const nodeTikzTransform = async (
5454
tagName: 'div',
5555
properties: {
5656
className: ['tikz-generated', ...(options?.class ?? '').split(' ')],
57-
align: options?.center ? 'center' : undefined
57+
align: options?.center ?? true ? 'center' : undefined
5858
},
5959
children: [svgNode]
6060
};

0 commit comments

Comments
 (0)