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

@agrarium/plugin-markdown

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agrarium/plugin-markdown - npm Package Compare versions

Comparing version 0.0.3 to 2.0.0-0

22

CHANGELOG.md

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

<a name="2.0.0-0"></a>
# [2.0.0-0](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.3...@agrarium/plugin-markdown@2.0.0-0) (2018-07-14)
### Features
* revise Core NodeJS API ([d5f4214](https://github.com/agrarium/agrarium/commit/d5f4214))
<a name="1.0.0-0"></a>
# [1.0.0-0](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.3...@agrarium/plugin-markdown@1.0.0-0) (2018-07-14)
### Features
* revise Core NodeJS API ([d5f4214](https://github.com/agrarium/agrarium/commit/d5f4214))
<a name="0.0.3"></a>

@@ -8,0 +30,0 @@ ## [0.0.3](https://github.com/agrarium/agrarium/compare/@agrarium/plugin-markdown@0.0.2...@agrarium/plugin-markdown@0.0.3) (2018-04-02)

6

lib/index.d.ts

@@ -1,3 +0,3 @@

/// <reference types="@agrarium/types" />
import { Plugin } from '@agrarium/plugin';
import { IChunk, IBemFile } from '@agrarium/core';
export interface IPluginMarkdownHooks {

@@ -23,3 +23,3 @@ inlineSource?: (options: {

lang: string;
file: BEMSDK.IFile;
file: IBemFile;
content: string | {

@@ -37,5 +37,5 @@ [key: string]: any;

constructor(options: IPluginMarkdownOptions);
gather(component: Agrarium.IComponent): Promise<{
gather(chunk: IChunk<IBemFile>): Promise<{
markdown: IResultPart[];
}>;
}
"use strict";
/// <reference types="@agrarium/types" />
Object.defineProperty(exports, "__esModule", { value: true });
const plugin_1 = require("@agrarium/plugin");
// FIXME: Old style modules, the are not support ES modules
const postMD = require('postmd');

@@ -44,3 +42,3 @@ const bemjson = require('postmd/plugins/postmd-bemjson');

}
async gather(component) {
async gather(chunk) {
const markdown = [];

@@ -52,3 +50,3 @@ const parsed = [];

tech: 'md',
files: component.files,
files: chunk.files,
}, (result) => {

@@ -55,0 +53,0 @@ const lang = result.file.tech.replace(/\.?md/, '') || this.defaultLang;

{
"name": "@agrarium/plugin-markdown",
"version": "0.0.3",
"version": "2.0.0-0",
"description": "Agrarium plugin for markdown files resolving",

@@ -32,4 +32,4 @@ "author": "Anton Vinogradov <winogradovaa@gmail.com>",

"dependencies": {
"@agrarium/plugin": "^0.0.3",
"@agrarium/types": "^0.1.0",
"@agrarium/core": "^2.0.0-0",
"@agrarium/plugin": "^2.0.0-0",
"posthtml": "^0.11.0",

@@ -39,5 +39,5 @@ "postmd": "0.0.2"

"devDependencies": {
"@agrarium/test-helpers": "^0.1.0",
"@agrarium/test-helpers": "^2.0.0-0",
"sinon": "^4.4.9"
}
}
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