mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #29124 from knom/markdownit-lazy-headers
Added declarations for MarkdownIt-Lazy-Headers project
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// Type definitions for MarkdownItLazyHeaders (markdown-it-lazy-headers) 0.13
|
||||
// Project: https://github.com/Galadirith/markdown-it-lazy-headers
|
||||
// Definitions by: Knom <https://github.com/knom>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { MarkdownIt } from 'markdown-it';
|
||||
|
||||
declare function lazyheaders(md: MarkdownIt): void;
|
||||
|
||||
export = lazyheaders;
|
||||
@@ -0,0 +1,13 @@
|
||||
import MarkdownIt = require("markdown-it");
|
||||
import lazyHeaders = require("markdown-it-lazy-headers");
|
||||
|
||||
const md = new MarkdownIt();
|
||||
|
||||
md.use(lazyHeaders);
|
||||
|
||||
const src = `# First header
|
||||
Lorem ipsum.
|
||||
## Next section!
|
||||
This is totaly awesome.`;
|
||||
|
||||
md.render(src);
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"markdown-it-lazy-headers-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user