🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More →
Socket
Book a DemoSign in
Socket

slate-edit-footnote

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-edit-footnote

A Slate plugin to work with footnote.

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
6
Created
Source

slate-edit-footnote

NPM version Linux Build Status

A Slate plugin to handle footnote edition.

Install

npm install slate-edit-footnote

Features

  • Normalize footnotes to be at end of the document

Simple Usage

import EditFootnote from 'slate-edit-footnote'

const plugins = [
  EditFootnote()
]

Arguments

  • [typeFootnote: String] — type for the footnote block
  • [typeRef: String] — type for the footnote ref

Utilities and Transform

slate-edit-footnote exports utilities and transforms:

transforms.insertFootnote

plugin.transforms.insertFootnote(transform: Transform) => Transform

Insert a new empty footnote, with a reference at the current position.

plugin.isSelectionInFootnote(options, state)

Utilities to determine if the current selection in the provided state is within a footnote. options is an object with a property typeFootnote which defaults to footnote.

Keywords

slate

FAQs

Package last updated on 30 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts