@markdoc/markdoc 0.5.1 → 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 +2 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +2 -2
- package/dist/src/formatter.d.ts +1 -1
- package/dist/src/formatter.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/formatter.ts +2 -2
- package/src/tokenizer/plugins/comments.test.ts +24 -0
- package/src/tokenizer/plugins/comments.ts +2 -2
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 (
|
|
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 (
|
|
8356
|
+
if (close === -1)
|
|
8357
8357
|
return false;
|
|
8358
8358
|
if (silent)
|
|
8359
8359
|
return true;
|