@mtcute/markdown-parser 0.22.0 → 0.22.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mtcute/markdown-parser
2
2
 
3
- 📖 [API Reference](https://ref.mtcute.dev/modules/_mtcute_markdown_parser.html)
3
+ 📖 [API Reference](https://ref.mtcute.dev/modules/_mtcute_markdown-parser.html)
4
4
 
5
5
  Markdown entities parser for mtcute
6
6
 
package/index.cjs CHANGED
@@ -290,7 +290,7 @@ function parse(strings, ...sub) {
290
290
  }
291
291
  }
292
292
  if (c === "\n") {
293
- if (pos !== 0) {
293
+ if (result.length !== 0) {
294
294
  result += "\n";
295
295
  }
296
296
  const nonWhitespace = text.slice(pos + 1).search(/[^ \t]/);
package/index.js CHANGED
@@ -283,7 +283,7 @@ function parse(strings, ...sub) {
283
283
  }
284
284
  }
285
285
  if (c === "\n") {
286
- if (pos !== 0) {
286
+ if (result.length !== 0) {
287
287
  result += "\n";
288
288
  }
289
289
  const nonWhitespace = text.slice(pos + 1).search(/[^ \t]/);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@mtcute/markdown-parser",
3
3
  "type": "module",
4
- "version": "0.22.0",
4
+ "version": "0.22.2",
5
5
  "description": "Markdown entities parser for mtcute",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@mtcute/core": "^0.22.0",
8
+ "@mtcute/core": "^0.22.2",
9
9
  "long": "5.2.3"
10
10
  },
11
11
  "exports": {