stream-markdown-parser 0.0.52 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10809,7 +10809,11 @@ function parseVmrContainer(tokens, index, options) {
10809
10809
  if (match) name = match[1];
10810
10810
  } else if (key.startsWith("data-")) {
10811
10811
  const attrName = key.slice(5);
10812
- containerAttrs[attrName] = value;
10812
+ try {
10813
+ containerAttrs[attrName] = JSON.parse(value);
10814
+ } catch {
10815
+ containerAttrs[attrName] = value;
10816
+ }
10813
10817
  }
10814
10818
  }
10815
10819
  const children = [];