@types/markdown-it
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -22,3 +22,3 @@ // Type definitions for markdown-it | ||
renderInline(md: string, env?: any): string; | ||
use(plugin: any, ...params: any[]): MarkdownIt.MarkdownIt; | ||
use(plugin: any, ...params: any[]): MarkdownIt; | ||
utils: { | ||
@@ -41,5 +41,5 @@ assign(obj: any): any; | ||
} | ||
disable(rules: string[] | string, ignoreInvalid?: boolean): MarkdownIt.MarkdownIt; | ||
enable(rules: string[] | string, ignoreInvalid?: boolean): MarkdownIt.MarkdownIt; | ||
set(options: Options): MarkdownIt.MarkdownIt; | ||
disable(rules: string[] | string, ignoreInvalid?: boolean): MarkdownIt; | ||
enable(rules: string[] | string, ignoreInvalid?: boolean): MarkdownIt; | ||
set(options: Options): MarkdownIt; | ||
normalizeLink(url: string): string; | ||
@@ -69,8 +69,30 @@ normalizeLinkText(url: string): string; | ||
interface Renderer { | ||
rules: { [name: string]: any }; | ||
render(tokens: any[], options: any, env: any): string; | ||
renderAttrs(token: any): string; | ||
renderInline(tokens: any[], options: any, env: any): string; | ||
renderToken(tokens: any[], idx: number, options: any): string; | ||
rules: { [name: string]: TokenRender }; | ||
render(tokens: Token[], options: any, env: any): string; | ||
renderAttrs(token: Token): string; | ||
renderInline(tokens: Token[], options: any, env: any): string; | ||
renderToken(tokens: Token[], idx: number, options: any): string; | ||
} | ||
interface Token { | ||
attrGet: (name: string) => string | null; | ||
attrIndex: (name: string) => number; | ||
attrJoin: (name: string, value: string) => void; | ||
attrPush: (attrData: string[]) => void; | ||
attrSet: (name: string, value: string) => void; | ||
attrs: string[][]; | ||
block: boolean; | ||
children: Token[]; | ||
content: string; | ||
hidden: boolean; | ||
info: string; | ||
level: number; | ||
map: number[]; | ||
markup: string; | ||
meta: any; | ||
nesting: number; | ||
tag: string; | ||
type: string; | ||
} | ||
type TokenRender = (tokens: Token[], index: number, options: any, env: any, self: Renderer) => void; | ||
} |
{ | ||
"name": "@types/markdown-it", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "TypeScript definitions for markdown-it", | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "09d978c21261bcaa338bcf93c42c3f54acf781afa3353a4a1d4cc5f09049c021" | ||
"typesPublisherContentHash": "c00c10c164b92509376b8efddafdd8897975c5b6eef1b5325e06589eef4e52be" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 29 Nov 2016 22:40:06 GMT | ||
* Last updated: Thu, 01 Dec 2016 01:30:18 GMT | ||
* File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -23,3 +23,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "09d978c21261bcaa338bcf93c42c3f54acf781afa3353a4a1d4cc5f09049c021" | ||
"contentHash": "c00c10c164b92509376b8efddafdd8897975c5b6eef1b5325e06589eef4e52be" | ||
} |
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
5399
114