@markdoc/markdoc 0.5.0 → 0.5.2

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
@@ -8337,7 +8337,7 @@ function block3(state, startLine, endLine, silent) {
8337
8337
  if (!state.src.startsWith(OPEN2, start))
8338
8338
  return false;
8339
8339
  const close = state.src.indexOf(CLOSE2, start);
8340
- if (!close)
8340
+ if (close === -1)
8341
8341
  return false;
8342
8342
  if (silent)
8343
8343
  return true;
@@ -8353,7 +8353,7 @@ function inline3(state, silent) {
8353
8353
  if (!state.src.startsWith(OPEN2, state.pos))
8354
8354
  return false;
8355
8355
  const close = state.src.indexOf(CLOSE2, state.pos);
8356
- if (!close)
8356
+ if (close === -1)
8357
8357
  return false;
8358
8358
  if (silent)
8359
8359
  return true;