1.0.4 • Published 7 months ago

@types/furigana-markdown-it v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

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

Summary

This package contains type definitions for furigana-markdown-it (https://github.com/iltrof/furigana-markdown-it#readme).

Details

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

index.d.ts

// Type definitions for furigana-markdown-it 1.0
// Project: https://github.com/iltrof/furigana-markdown-it#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { PluginSimple } from 'markdown-it';

/**
 * A markdown-it plugin which adds furigana support.
 */
declare function furigana(options?: furigana.Options): PluginSimple;

declare namespace furigana {
    /**
     * Options can be provided during initialization of the plugin
     */
    interface Options {
        /**
         * fallback parentheses to use in contexts where <ruby> tags are unavailable.
         * By default the plugin uses 【】 for fallback,
         * so [漢字]{かんじ} becomes 漢字【かんじ】 on a rare browser without <ruby> support.
         *
         * This option takes a string with the opening bracket followed by the closing bracket.
         */
        fallbackParens?: string | undefined;

        /**
         * separators are characters that allow you to split furigana between individual kanji (read the usage section).
         * Any kind of space is a separator, as well as these characters: `..。・||//`.
         *
         * If you want additional characters to act as separators, provide them with this option.
         */
        extraSeparators?: string | undefined;

        /**
         * combinators are characters that allow you to indicate a kanji boundary
         * without actually splitting the furigana between these kanji (read the usage section).
         *
         * Default combinators are + and +.
         * If you need additional combinator characters, provide them with this option.
         */
        extraCombinators?: string | undefined;
    }
}

export = furigana;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:56 GMT
  • Dependencies: @types/markdown-it
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz.

1.0.2

8 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

4 years ago