sketchmark 0.1.8 → 0.2.0

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/README.md CHANGED
@@ -52,7 +52,7 @@ end
52
52
  ## Installation
53
53
 
54
54
  ```bash
55
- npm install sketchmark roughjs
55
+ npm install sketchmark
56
56
  ```
57
57
 
58
58
  rough.js is a peer dependency — it must be available at runtime.
package/dist/index.cjs CHANGED
@@ -814,6 +814,8 @@ function parse(src) {
814
814
  skipNL();
815
815
  while (cur().type !== "EOF" && cur().value !== "end") {
816
816
  skipNL();
817
+ if (cur().type === "RBRACE")
818
+ break;
817
819
  const v = cur().value;
818
820
  if (v === "data") {
819
821
  dataRows = parseDataArray();
@@ -834,6 +836,7 @@ function parse(src) {
834
836
  v === "config" || // ← ADD
835
837
  v === "theme" || // ← ADD
836
838
  v === "style" ||
839
+ v === "markdown" ||
837
840
  CHART_TYPES.includes(v)) {
838
841
  break;
839
842
  }