Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@moonbit/markdown-linter

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moonbit/markdown-linter - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

14

markdown-linter.js

@@ -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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc