{"id":26084256,"url":"https://github.com/albertarakelyan/tiptap-extensions-line-height","last_synced_at":"2026-02-14T08:01:53.976Z","repository":{"id":280020560,"uuid":"939253236","full_name":"AlbertArakelyan/tiptap-extensions-line-height","owner":"AlbertArakelyan","description":"A Tiptap line-height extension for React, Next.","archived":false,"fork":false,"pushed_at":"2025-03-07T18:44:20.000Z","size":1105,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T21:29:58.854Z","etag":null,"topics":["leading","line-height","paragraph","text","tiptap","tiptap-extension","tiptap-line-height"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlbertArakelyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-26T08:45:17.000Z","updated_at":"2025-03-07T18:43:42.000Z","dependencies_parsed_at":"2025-02-28T22:46:56.478Z","dependency_job_id":"06e0048c-dba5-4e26-8552-41b874f9cf25","html_url":"https://github.com/AlbertArakelyan/tiptap-extensions-line-height","commit_stats":null,"previous_names":["albertarakelyan/tiptap-extension-line-height"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AlbertArakelyan/tiptap-extensions-line-height","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertArakelyan%2Ftiptap-extensions-line-height","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertArakelyan%2Ftiptap-extensions-line-height/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertArakelyan%2Ftiptap-extensions-line-height/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertArakelyan%2Ftiptap-extensions-line-height/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlbertArakelyan","download_url":"https://codeload.github.com/AlbertArakelyan/tiptap-extensions-line-height/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertArakelyan%2Ftiptap-extensions-line-height/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29439821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["leading","line-height","paragraph","text","tiptap","tiptap-extension","tiptap-line-height"],"created_at":"2025-03-09T04:51:17.298Z","updated_at":"2026-02-14T08:01:53.937Z","avatar_url":"https://github.com/AlbertArakelyan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiptap-extensions-line-height\n\n![tiptap-extension-line-height](https://github.com/AlbertArakelyan/tiptap-extensions-line-height-assets/blob/main/screenshot.gif?raw=true)\n\n[Tiptap](https://tiptap.dev/) is a suite of open source content editing and real-time collaboration tools for developers building apps like Notion or Google Docs.\n\nThis package provides the ability to adjust the line height of the tip tap text or paragraph.\n\nMake sure you already have installed all Tiptap related packages in you project\n\n```bash\n$ npm install @tiptap/react @tiptap/pm @tiptap/starter-kit\n```\n\n\u003c!-- It has been tested in \n[React](https://codesandbox.io/p/some_sandbox_link), and [NextJS](https://codesandbox.io/p/some_sandbox_link) --\u003e\n\n## Installation\n\nYou can install it using npm:\n\n```bash\n$ npm install tiptap-extensions-line-height\n```\n\n## Usage\n\n```tsx\nimport { EditorContent, useEditor } from '@tiptap/react';\nimport StarterKit from '@tiptap/starter-kit';\nimport LineHeight from 'tiptap-extensions-resize-image';\n\nexport const Editor = () =\u003e {\n  const editor = useEditor({\n    extensions: [StarterKit, LineHeight],\n  });\n\n  const lineHeights = [\n    { label: 'Normal', value: 'normal' },\n    { label: 'Simple', value: '1' },\n    { label: '1.15', value: '1.15' },\n    { label: '1.5', value: '1.5' },\n    { label: 'Double', value: '2' },\n  ];\n\n  const handleLineHeightChange = (e: React.ChangeEvent\u003cHTMLSelectElement\u003e) =\u003e {\n    editor?.chain().focus().setLineHeight(e.target.value).run();\n  };\n\n  return (\n    \u003cdiv\u003e\n      \u003cselect onChange={handleLineHeightChange}\u003e\n        {lineHeights.map((lineHeight) =\u003e (\n          \u003coption key={lineHeight.value} value={lineHeight.value}\u003e\n            {lineHeight.label}\n          \u003c/option\u003e\n        ))}\n      \u003c/select\u003e\n      \u003cEditorContent editor={editor} /\u003e\n    \u003c/div\u003e\n  );\n};\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertarakelyan%2Ftiptap-extensions-line-height","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertarakelyan%2Ftiptap-extensions-line-height","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertarakelyan%2Ftiptap-extensions-line-height/lists"}