Socket
Socket
Sign inDemoInstall

@textlint/markdown-to-ast

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/markdown-to-ast - npm Package Compare versions

Comparing version 6.0.7 to 6.0.8

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="6.0.8"></a>
## [6.0.8](https://github.com/textlint/textlint/compare/@textlint/markdown-to-ast@6.0.7...@textlint/markdown-to-ast@6.0.8) (2018-04-02)
### Bug Fixes
* **markdown-to-ast:** enable yaml frontmatter parse by default ([121c62f](https://github.com/textlint/textlint/commit/121c62f))
<a name="6.0.7"></a>

@@ -8,0 +19,0 @@ ## [6.0.7](https://github.com/textlint/textlint/compare/@textlint/markdown-to-ast@6.0.6...@textlint/markdown-to-ast@6.0.7) (2018-04-02)

6

lib/markdown-parser.js

@@ -12,4 +12,6 @@ // LICENSE : MIT

var SyntaxMap = require("./mapping/markdown-syntax-map");
var remarkAbstract = require("remark");
var remark = remarkAbstract();
var unified = require("unified");
var remarkParse = require("remark-parse");
var frontmatter = require("remark-frontmatter");
var remark = unified().use(remarkParse).use(frontmatter, ["yaml"]);
/**

@@ -16,0 +18,0 @@ * parse markdown text and return ast mapped location info.

{
"name": "@textlint/markdown-to-ast",
"version": "6.0.7",
"version": "6.0.8",
"description": "Parse Markdown to AST with location info.",

@@ -34,9 +34,11 @@ "homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/markdown-to-ast/",

"debug": "^2.1.3",
"remark": "^9.0.0",
"remark-frontmatter": "^1.2.0",
"remark-parse": "^5.0.0",
"structured-source": "^3.0.2",
"traverse": "^0.6.6"
"traverse": "^0.6.6",
"unified": "^6.1.6"
},
"devDependencies": {
"@textlint/ast-tester": "^2.0.6",
"@textlint/ast-traverse": "^2.0.7",
"@textlint/ast-tester": "^2.0.7",
"@textlint/ast-traverse": "^2.0.8",
"babel-cli": "^6.24.1",

@@ -43,0 +45,0 @@ "babel-preset-env": "^1.4.0",

@@ -8,4 +8,8 @@ // LICENSE : MIT

const SyntaxMap = require("./mapping/markdown-syntax-map");
const remarkAbstract = require("remark");
const remark = remarkAbstract();
const unified = require("unified");
const remarkParse = require("remark-parse");
const frontmatter = require("remark-frontmatter");
const remark = unified()
.use(remarkParse)
.use(frontmatter, ["yaml"]);
/**

@@ -12,0 +16,0 @@ * parse markdown text and return ast mapped location info.

Sorry, the diff of this file is not supported yet

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