@types/markdown-it
Advanced tools
Comparing version 0.0.1 to 0.0.2
// Type definitions for markdown-it | ||
// Project: https://github.com/markdown-it/markdown-it | ||
// Definitions by: York Yao <https://github.com/plantain-00/> | ||
// Definitions by: York Yao <https://github.com/plantain-00/>, Robert Coie <https://github.com/rapropos/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,6 +8,6 @@ | ||
new (): MarkdownIt.MarkdownIt; | ||
new (presetName: "commonmark" | "zero" | "default"): MarkdownIt.MarkdownIt; | ||
new (presetName: "commonmark" | "zero" | "default", options?: MarkdownIt.Options): MarkdownIt.MarkdownIt; | ||
new (options: MarkdownIt.Options): MarkdownIt.MarkdownIt; | ||
(): MarkdownIt.MarkdownIt; | ||
(presetName: "commonmark" | "zero" | "default"): MarkdownIt.MarkdownIt; | ||
(presetName: "commonmark" | "zero" | "default", options ?: MarkdownIt.Options): MarkdownIt.MarkdownIt; | ||
(options: MarkdownIt.Options): MarkdownIt.MarkdownIt; | ||
@@ -23,2 +23,4 @@ } | ||
renderInline(md: string, env?: any): string; | ||
parse(src: string, env: any): Token[]; | ||
parseInline(src: string, env: any): Token[]; | ||
use(plugin: any, ...params: any[]): MarkdownIt; | ||
@@ -48,6 +50,6 @@ utils: { | ||
validateLink(url: string): boolean; | ||
block: any; | ||
core: any; | ||
block: ParserBlock; | ||
core: Core; | ||
helpers: any; | ||
inline: any; | ||
inline: ParserInline; | ||
linkify: LinkifyIt; | ||
@@ -98,2 +100,33 @@ renderer: Renderer; | ||
type TokenRender = (tokens: Token[], index: number, options: any, env: any, self: Renderer) => void; | ||
interface Rule { | ||
(state: any): void; | ||
} | ||
interface Ruler { | ||
after(afterName: string, ruleName: string, rule: Rule, options?: any): void; | ||
at(name: string, rule: Rule, options?: any): void; | ||
before(beforeName: string, ruleName: string, rule: Rule, options?: any): void; | ||
disable(rules: string | string[], ignoreInvalid?: boolean): string[]; | ||
enable(rules: string | string[], ignoreInvalid?: boolean): string[]; | ||
enableOnly(rule: string, ignoreInvalid?: boolean): void; | ||
getRules(chain: string): Rule[]; | ||
push(ruleName: string, rule: Rule, options?: any): void; | ||
} | ||
interface ParserBlock { | ||
parse(src: string, md: MarkdownIt, env: any, outTokens: Token[]): void; | ||
ruler: Ruler; | ||
} | ||
interface Core { | ||
process(state: any): void; | ||
ruler: Ruler; | ||
} | ||
interface ParserInline { | ||
parse(src: string, md: MarkdownIt, env: any, outTokens: Token[]): void; | ||
ruler: Ruler; | ||
ruler2: Ruler; | ||
} | ||
} |
{ | ||
"name": "@types/markdown-it", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript definitions for markdown-it", | ||
"license": "MIT", | ||
"author": "York Yao <https://github.com/plantain-00/>", | ||
"author": "York Yao <https://github.com/plantain-00/>, Robert Coie <https://github.com/rapropos/>", | ||
"main": "", | ||
@@ -15,3 +15,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c00c10c164b92509376b8efddafdd8897975c5b6eef1b5325e06589eef4e52be" | ||
"typesPublisherContentHash": "a814e64ef6c7c390319b29c1a03bdd72f962d5143bf4667e1866f473046006d5", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,12 +8,11 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/markdown-it | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/markdown-it | ||
Additional Details | ||
* Last updated: Thu, 01 Dec 2016 01:30:18 GMT | ||
* File structure: ProperModule | ||
* Last updated: Thu, 29 Dec 2016 23:09:09 GMT | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: MarkdownIt | ||
* Global values: none | ||
# Credits | ||
These definitions were written by York Yao <https://github.com/plantain-00/>. | ||
These definitions were written by York Yao <https://github.com/plantain-00/>, Robert Coie <https://github.com/rapropos/>. |
{ | ||
"authors": "York Yao <https://github.com/plantain-00/>", | ||
"authors": "York Yao <https://github.com/plantain-00/>, Robert Coie <https://github.com/rapropos/>", | ||
"libraryDependencies": [], | ||
@@ -7,2 +7,3 @@ "moduleDependencies": [], | ||
"libraryMinorVersion": 0, | ||
"typeScriptVersion": "2.0", | ||
"libraryName": "markdown-it", | ||
@@ -12,7 +13,4 @@ "typingsPackageName": "markdown-it", | ||
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
"sourceBranch": "types-2.0", | ||
"kind": "ProperModule", | ||
"globals": [ | ||
"MarkdownIt" | ||
], | ||
"sourceBranch": "master", | ||
"globals": [], | ||
"declaredModules": [ | ||
@@ -25,3 +23,3 @@ "markdown-it" | ||
"hasPackageJson": false, | ||
"contentHash": "c00c10c164b92509376b8efddafdd8897975c5b6eef1b5325e06589eef4e52be" | ||
"contentHash": "a814e64ef6c7c390319b29c1a03bdd72f962d5143bf4667e1866f473046006d5" | ||
} |
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
6777
140
18