aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@types/marked
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-24 15:10:37 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-24 15:11:17 +0200
commit7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch)
tree70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/@types/marked
parentaca1143cb9eed16cf37f04e475e4257418dd18ac (diff)
downloadwallet-core-7a3df06eb573d36142bd1a8e03c5ce8752d300b3.tar.xz
fix build issues and add typedoc
Diffstat (limited to 'node_modules/@types/marked')
-rw-r--r--node_modules/@types/marked/README.md18
-rw-r--r--node_modules/@types/marked/index.d.ts164
-rw-r--r--node_modules/@types/marked/package.json16
-rw-r--r--node_modules/@types/marked/types-metadata.json25
4 files changed, 223 insertions, 0 deletions
diff --git a/node_modules/@types/marked/README.md b/node_modules/@types/marked/README.md
new file mode 100644
index 000000000..0ad2d4578
--- /dev/null
+++ b/node_modules/@types/marked/README.md
@@ -0,0 +1,18 @@
+# Installation
+> `npm install --save @types/marked`
+
+# Summary
+This package contains type definitions for Marked (https://github.com/chjj/marked).
+
+# Details
+Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/marked
+
+Additional Details
+ * Last updated: Mon, 19 Sep 2016 17:28:59 GMT
+ * File structure: Mixed
+ * Library Dependencies: none
+ * Module Dependencies: none
+ * Global values: marked
+
+# Credits
+These definitions were written by William Orr <https://github.com/worr>.
diff --git a/node_modules/@types/marked/index.d.ts b/node_modules/@types/marked/index.d.ts
new file mode 100644
index 000000000..63dad27b3
--- /dev/null
+++ b/node_modules/@types/marked/index.d.ts
@@ -0,0 +1,164 @@
+// Type definitions for Marked
+// Project: https://github.com/chjj/marked
+// Definitions by: William Orr <https://github.com/worr>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+interface MarkedStatic {
+ /**
+ * Compiles markdown to HTML.
+ *
+ * @param src String of markdown source to be compiled
+ * @param callback Function called when the markdownString has been fully parsed when using async highlighting
+ * @return String of compiled HTML
+ */
+ (src: string, callback: Function): string;
+
+ /**
+ * Compiles markdown to HTML.
+ *
+ * @param src String of markdown source to be compiled
+ * @param options Hash of options
+ * @param callback Function called when the markdownString has been fully parsed when using async highlighting
+ * @return String of compiled HTML
+ */
+ (src: string, options?: MarkedOptions, callback?: Function): string;
+
+ /**
+ * @param src String of markdown source to be compiled
+ * @param options Hash of options
+ */
+ lexer(src: string, options?: MarkedOptions): any[];
+
+ /**
+ * Compiles markdown to HTML.
+ *
+ * @param src String of markdown source to be compiled
+ * @param callback Function called when the markdownString has been fully parsed when using async highlighting
+ * @return String of compiled HTML
+ */
+ parse(src: string, callback: Function): string;
+
+ /**
+ * Compiles markdown to HTML.
+ *
+ * @param src String of markdown source to be compiled
+ * @param options Hash of options
+ * @param callback Function called when the markdownString has been fully parsed when using async highlighting
+ * @return String of compiled HTML
+ */
+ parse(src: string, options?: MarkedOptions, callback?: Function): string;
+
+ /**
+ * @param options Hash of options
+ */
+ parser(src: any[], options?: MarkedOptions): string;
+
+ /**
+ * Sets the default options.
+ *
+ * @param options Hash of options
+ */
+ setOptions(options: MarkedOptions): MarkedStatic;
+
+ Renderer: {
+ new(): MarkedRenderer;
+ }
+
+ Parser: {
+ new(options: MarkedOptions): MarkedParser;
+ }
+}
+
+interface MarkedRenderer {
+ code(code: string, language: string): string;
+ blockquote(quote: string): string;
+ html(html: string): string;
+ heading(text: string, level: number, raw: string): string;
+ hr(): string;
+ list(body: string, ordered: boolean): string;
+ listitem(text: string): string;
+ paragraph(text: string): string;
+ table(header: string, body: string): string;
+ tablerow(content: string): string;
+ tablecell(content: string, flags: {
+ header: boolean,
+ align: string
+ }): string;
+ strong(text: string): string;
+ em(text: string): string;
+ codespan(code: string): string;
+ br(): string;
+ del(text: string): string;
+ link(href: string, title: string, text: string): string;
+ image(href: string, title: string, text: string): string;
+ text(text: string): string;
+}
+
+interface MarkedParser {
+ parse(source: any[]): string
+}
+
+interface MarkedOptions {
+ /**
+ * Type: object Default: new Renderer()
+ *
+ * An object containing functions to render tokens to HTML.
+ */
+ renderer?: MarkedRenderer;
+
+ /**
+ * Enable GitHub flavored markdown.
+ */
+ gfm?: boolean;
+
+ /**
+ * Enable GFM tables. This option requires the gfm option to be true.
+ */
+ tables?: boolean;
+
+ /**
+ * Enable GFM line breaks. This option requires the gfm option to be true.
+ */
+ breaks?: boolean;
+
+ /**
+ * Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.
+ */
+ pedantic?: boolean;
+
+ /**
+ * Sanitize the output. Ignore any HTML that has been input.
+ */
+ sanitize?: boolean;
+
+ /**
+ * Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic.
+ */
+ smartLists?: boolean;
+
+ /**
+ * Shows an HTML error message when rendering fails.
+ */
+ silent?: boolean;
+
+ /**
+ * A function to highlight code blocks. The function takes three arguments: code, lang, and callback.
+ */
+ highlight? (code: string, lang: string, callback?: Function): string;
+
+ /**
+ * Set the prefix for code block classes.
+ */
+ langPrefix?: string;
+
+ /**
+ * Use "smart" typograhic punctuation for things like quotes and dashes.
+ */
+ smartypants?: boolean;
+}
+
+declare module "marked" {
+ export = marked;
+}
+
+declare var marked: MarkedStatic;
diff --git a/node_modules/@types/marked/package.json b/node_modules/@types/marked/package.json
new file mode 100644
index 000000000..f885399c5
--- /dev/null
+++ b/node_modules/@types/marked/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "@types/marked",
+ "version": "0.0.28",
+ "description": "TypeScript definitions for Marked",
+ "license": "MIT",
+ "author": "William Orr <https://github.com/worr>",
+ "main": "",
+ "repository": {
+ "type": "git",
+ "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
+ },
+ "scripts": {},
+ "dependencies": {},
+ "typings": "index.d.ts",
+ "typesPublisherContentHash": "ebaaa997ad2ab752bb16fbb1a02c4a34e440cb93410eb5ec82db83a1076fba80"
+} \ No newline at end of file
diff --git a/node_modules/@types/marked/types-metadata.json b/node_modules/@types/marked/types-metadata.json
new file mode 100644
index 000000000..7209c120f
--- /dev/null
+++ b/node_modules/@types/marked/types-metadata.json
@@ -0,0 +1,25 @@
+{
+ "authors": "William Orr <https://github.com/worr>",
+ "definitionFilename": "index.d.ts",
+ "libraryDependencies": [],
+ "moduleDependencies": [],
+ "libraryMajorVersion": "0",
+ "libraryMinorVersion": "0",
+ "libraryName": "Marked",
+ "typingsPackageName": "marked",
+ "projectName": "https://github.com/chjj/marked",
+ "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
+ "sourceBranch": "types-2.0",
+ "kind": "Mixed",
+ "globals": [
+ "marked"
+ ],
+ "declaredModules": [
+ "marked"
+ ],
+ "files": [
+ "index.d.ts"
+ ],
+ "hasPackageJson": false,
+ "contentHash": "ebaaa997ad2ab752bb16fbb1a02c4a34e440cb93410eb5ec82db83a1076fba80"
+} \ No newline at end of file