You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Table tags, the width attribute throws a type error if the value is not a Number. However, the width attribute works (and is expected to work) with strings. In the Markdoc Attributes documentation, there's an example of using the width attribute inside a Table with a percentage value, which is a String. The syntax works, but throws an error.
To clarify:
Works as expected → a Table's width attribute accepts a String.
Unexpected behavior → passing a String (i.e. 25%) in a Table's width attribute throws the following error:
What happened?
When working with Table tags, the
width
attribute throws a type error if the value is not a Number. However, thewidth
attribute works (and is expected to work) with strings. In the Markdoc Attributes documentation, there's an example of using thewidth
attribute inside a Table with a percentage value, which is a String. The syntax works, but throws an error.To clarify:
width
attribute accepts a String.25%
) in a Table'swidth
attribute throws the following error:To reproduce
(Note that despite the error, the
20%
syntax does work and limits the table's column to 20%.)Version
No response
Additional context
The text was updated successfully, but these errors were encountered: