@weave-md/validate
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2025 weavepage | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
@@ -17,2 +17,10 @@ import { parseNodeUrl } from '@weave-md/core'; | ||
| while (i < line.length) { | ||
| // Skip inline code spans | ||
| if (line[i] === '`' && !isEscaped(line, i)) { | ||
| const codeEnd = line.indexOf('`', i + 1); | ||
| if (codeEnd !== -1) { | ||
| i = codeEnd + 1; | ||
| continue; | ||
| } | ||
| } | ||
| if (line[i] === '[' && !isEscaped(line, i)) { | ||
@@ -19,0 +27,0 @@ const textEnd = findClosingBracket(line, i + 1); |
+8
-11
| { | ||
| "name": "@weave-md/validate", | ||
| "version": "0.3.0-alpha.0", | ||
| "version": "0.3.1-alpha.0", | ||
| "description": "Reference validation for Weave Markdown", | ||
@@ -14,11 +14,5 @@ "type": "module", | ||
| }, | ||
| "bin": { | ||
| "weave-md-validate": "dist/cli.js" | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "keywords": [ | ||
@@ -38,3 +32,3 @@ "weave", | ||
| "peerDependencies": { | ||
| "@weave-md/core": "workspace:*" | ||
| "@weave-md/core": "^0.3.1-alpha.0" | ||
| }, | ||
@@ -46,5 +40,8 @@ "dependencies": { | ||
| "@types/node": "^20.10.0", | ||
| "@weave-md/core": "workspace:*", | ||
| "typescript": "^5.7.0" | ||
| "typescript": "^5.7.0", | ||
| "@weave-md/core": "^0.3.1-alpha.0" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc" | ||
| } | ||
| } | ||
| } |
42591
3.09%15
7.14%996
0.81%