remark-mdc icon indicating copy to clipboard operation
remark-mdc copied to clipboard

Check if value is an object to properly simple quote value

Open ManUtopiK opened this issue 9 months ago • 1 comments

Hi!

I fixed a bug that occur only on transformation from AST to markdown when a component has an array attribute.

Input :

::container-component{:items='["Nuxt", "Vue"]'}
::

Before :

::container-component{:items="["Nuxt", "Vue"]"}
::

After this fix :

::container-component{:items='["Nuxt", "Vue"]'}
::

I followed the spec of the JSON string.

I added a bunch of tests around component's attributes...

ManUtopiK avatar May 18 '24 12:05 ManUtopiK