@types/markdown-it-highlightjs
TypeScript icon, indicating that this package has built-in type declarations

3.3.4 • Public • Published

Installation

npm install --save @types/markdown-it-highlightjs

Summary

This package contains type definitions for markdown-it-highlightjs (https://github.com/valeriangalliat/markdown-it-highlightjs).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/markdown-it-highlightjs.

index.d.ts

import hljs = require("highlight.js");
import { PluginWithOptions } from "markdown-it";

declare const highlightjs: PluginWithOptions<{
    /**
     * Whether to automatically detect language if not specified.
     */
    auto?: boolean | undefined;

    /**
     * Whether to add the `hljs` class to raw code blocks (not fenced blocks).
     */
    code?: boolean | undefined;

    /**
     * Register other languages which are not included in the standard pack.
     */
    register?: {
        [language: string]: (hljs?: HLJSApi) => Language;
    } | undefined;

    /**
     * Whether to highlight inline code.
     */
    inline?: boolean | undefined;
}>;

export = highlightjs;

Additional Details

Credits

These definitions were written by Wilson Gramer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/markdown-it-highlightjs

Weekly Downloads

1,064

Version

3.3.4

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • types