3.3.4 • Published 6 months ago

@types/markdown-it-highlightjs v3.3.4

Weekly downloads
110
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for markdown-it-highlightjs 3.3
// Project: https://github.com/valeriangalliat/markdown-it-highlightjs
// Definitions by: Wilson Gramer <https://github.com/WilsonGramer>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5

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.

3.3.4

6 months ago

3.3.3

7 months ago

3.3.2

8 months ago

3.3.1

3 years ago

3.3.0

3 years ago