{"id":19501141,"url":"https://github.com/gitbookio/slate-edit-footnote","last_synced_at":"2025-04-25T23:30:58.730Z","repository":{"id":57362895,"uuid":"72579835","full_name":"GitbookIO/slate-edit-footnote","owner":"GitbookIO","description":"A Slate plugin to handle footnotes","archived":false,"fork":false,"pushed_at":"2017-05-22T14:12:25.000Z","size":2411,"stargazers_count":10,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T16:49:24.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitbookIO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-01T21:51:28.000Z","updated_at":"2022-06-09T21:06:15.000Z","dependencies_parsed_at":"2022-09-26T16:32:21.238Z","dependency_job_id":null,"html_url":"https://github.com/GitbookIO/slate-edit-footnote","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fslate-edit-footnote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fslate-edit-footnote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fslate-edit-footnote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fslate-edit-footnote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitbookIO","download_url":"https://codeload.github.com/GitbookIO/slate-edit-footnote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:11:37.841Z","updated_at":"2025-04-25T23:30:58.288Z","avatar_url":"https://github.com/GitbookIO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slate-edit-footnote\n\n[![NPM version](https://badge.fury.io/js/slate-edit-footnote.svg)](http://badge.fury.io/js/slate-edit-footnote)\n[![Linux Build Status](https://travis-ci.org/GitbookIO/slate-edit-footnote.png?branch=master)](https://travis-ci.org/GitbookIO/slate-edit-footnote)\n\nA Slate plugin to handle footnote edition.\n\n### Install\n\n```\nnpm install slate-edit-footnote\n```\n\n### Features\n\n- Normalize footnotes to be at end of the document\n\n### Simple Usage\n\n```js\nimport EditFootnote from 'slate-edit-footnote'\n\nconst plugins = [\n  EditFootnote()\n]\n```\n\n#### Arguments\n\n- ``[typeFootnote: String]`` — type for the footnote block\n- ``[typeRef: String]`` — type for the footnote ref\n\n### Utilities and Transform\n\n`slate-edit-footnote` exports utilities and transforms:\n\n\n#### `transforms.insertFootnote`\n\n`plugin.transforms.insertFootnote(transform: Transform) =\u003e Transform`\n\nInsert a new empty footnote, with a reference at the current position.\n\n#### `plugin.isSelectionInFootnote(options, state)`\n\nUtilities to determine if the current selection in the provided `state` is\nwithin a footnote. `options` is an object with a property `typeFootnote` which\ndefaults to `footnote`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fslate-edit-footnote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbookio%2Fslate-edit-footnote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fslate-edit-footnote/lists"}