@moonbit/markdown-linter
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -73,2 +73,5 @@ #!/usr/bin/env node | ||
break; | ||
case "no-check": | ||
kind = "no-check"; | ||
break; | ||
default: | ||
@@ -95,4 +98,7 @@ kind = "normal"; | ||
} | ||
codeBlocks.map(block => { | ||
var processedCodeBlocks = [] | ||
codeBlocks.forEach(block => { | ||
var wrapper; | ||
@@ -103,2 +109,4 @@ switch (block.kind) { | ||
break; | ||
case "no-check": | ||
return; | ||
default: | ||
@@ -125,3 +133,3 @@ wrapper = { leading: "", trailing: "" }; | ||
block.content = wrapper.leading + block.content + wrapper.trailing; | ||
return block; | ||
processedCodeBlocks.push(block); | ||
}); | ||
@@ -143,3 +151,3 @@ | ||
const source = codeBlocks.reduce((acc, { content }) => acc + content, ""); | ||
const source = processedCodeBlocks.reduce((acc, { content }) => acc + content, ""); | ||
@@ -146,0 +154,0 @@ // create a temporary project to run type checking and testing |
{ | ||
"name": "@moonbit/markdown-linter", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "markdown linter for MoonBit", | ||
@@ -5,0 +5,0 @@ "main": "./markdown-linter.js", |
@@ -80,2 +80,12 @@ # MoonBit Markdown Linter | ||
test result: 1 passed; 0 failed | ||
``` | ||
``` | ||
## Disable check | ||
You can also disable checking for some code block by sepcifying `no-check`. | ||
```moonbit no-check | ||
// some pseudo code | ||
fn id(x : T) -> T | ||
fn succ(x : T) -> T | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18595
157
90