@markdy/core 0.7.18 → 0.7.20

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
@@ -15,6 +15,18 @@ The parser and AST types for [MarkdyScript](../../docs/SYNTAX.md) — a DSL for
15
15
  pnpm add @markdy/core
16
16
  ```
17
17
 
18
+ ## Visual guide
19
+
20
+ <p align="center">
21
+ <img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/markdy-core-renderer-map.webp" alt="Markdy core and renderer package map" width="900" />
22
+ </p>
23
+
24
+ ## Love Story result
25
+
26
+ <p align="center">
27
+ <img src="https://raw.githubusercontent.com/HoangYell/markdy-com/main/website/public/images/markdy-love-story-result.webp" alt="Love Story main Markdy result" width="900" />
28
+ </p>
29
+
18
30
  ## Usage
19
31
 
20
32
  ```typescript
package/dist/index.js CHANGED
@@ -1056,6 +1056,7 @@ function pushEvent(ast, scope, ev) {
1056
1056
  if (endTime > scope.prevEnd) scope.prevEnd = endTime;
1057
1057
  }
1058
1058
  function validateActionForActor(action, actorDef, mustUnderstand, lineNum, warnings) {
1059
+ if (isKnownAction(actorDef.type, action)) return;
1059
1060
  if (isFigureOnlyAction(action)) {
1060
1061
  if (actorDef.type !== "figure") {
1061
1062
  throw new ParseError(
@@ -1065,7 +1066,6 @@ function validateActionForActor(action, actorDef, mustUnderstand, lineNum, warni
1065
1066
  }
1066
1067
  return;
1067
1068
  }
1068
- if (isKnownAction(actorDef.type, action)) return;
1069
1069
  if (mustUnderstand) {
1070
1070
  throw new ParseError(`Unknown action "${action}" (must-understand form)`, lineNum);
1071
1071
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/core",
3
- "version": "0.7.18",
3
+ "version": "0.7.20",
4
4
  "description": "MarkdyScript parser and AST types — zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",