{"id":15556490,"url":"https://github.com/gforge/reactstrap-md-textarea","last_synced_at":"2025-03-29T03:22:38.646Z","repository":{"id":70448495,"uuid":"128748503","full_name":"gforge/reactstrap-md-textarea","owner":"gforge","description":"Textare with markdown \u0026 html capacity","archived":false,"fork":false,"pushed_at":"2022-10-21T21:15:30.000Z","size":10016,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T13:15:31.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gforge.github.io/reactstrap-md-textarea","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/gforge.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}},"created_at":"2018-04-09T09:36:29.000Z","updated_at":"2022-10-21T21:08:54.000Z","dependencies_parsed_at":"2023-07-29T05:15:49.983Z","dependency_job_id":null,"html_url":"https://github.com/gforge/reactstrap-md-textarea","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.08571428571428574,"last_synced_commit":"a67fee53e90b966682b08a8c33430f9aae7765fa"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gforge%2Freactstrap-md-textarea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gforge%2Freactstrap-md-textarea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gforge%2Freactstrap-md-textarea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gforge%2Freactstrap-md-textarea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gforge","download_url":"https://codeload.github.com/gforge/reactstrap-md-textarea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246132109,"owners_count":20728433,"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-10-02T15:14:00.858Z","updated_at":"2025-03-29T03:22:38.627Z","avatar_url":"https://github.com/gforge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/reactstrap-md-textarea.svg)](https://badge.fury.io/js/reactstrap-md-textarea)\n\n# A markdown textarea component\n\nThis component is for allowing input in markdown format and then showing it\nto the user in a separate tab. The tabs are handled by the\n[`reactstrap`](https://www.npmjs.com/package/reactstrap) library\nthat relies on the [bootstrap](https://getbootstrap.com/) components.\nCheckout the [examples](https://gforge.github.io/reactstrap-md-textarea/).\n\n## Basic usage\n\nYou have will set a limited number of properties. All properties except for\n`allowFilteredHtml` are passed to the underlying `reactstrap::Input` element.\nFor displaying the markdown is passed through [`react-markdown`](https://www.npmjs.com/package/react-markdown)\npackage.\n\n```{js}\nimport { Textarea as MdTextarea } from 'reactstrap-md-textarea';\n\n...\n\u003cMdTextarea\n  onChange={(e) =\u003e this.onChange('mdTxt', e.target.value)}\n  value={this.state.mdTxt}\n/\u003e\n```\n\n## Adding html direct rendering\n\nAs you may sometimes need advanced `html` features there is an option of passing\ndirect html to the component. It will render the html onto a div after sanitizing\nthe input using [xss](https://www.npmjs.com/package/xss). **Note!** the function\ndoesn't filter the return value. That is up to the user.\n\n```{js}\nimport { Textarea as MdTextarea } from 'reactstrap-md-textarea';\n\n...\n\u003cMdTextarea\n  onChange={(e) =\u003e this.onChange('htmlTxt', e.target.value)}\n  rows={10}\n  allowFilteredHtml={true}\n  value={this.state.htmlTxt}\n/\u003e\n```\n\n## Formatter\n\nThe package also exposes the formatter with the markdown and html options:\n\n```{js}\nimport { FormattedText } from 'reactstrap-md-textarea';\n\n\u003cFormattedText value=\"#My MD text\" /\u003e\n```\n\n## Changelog\n\n### 3.1.0\n\n- Updated to React 18 and other dependencies\n- Dropped Flow support\n- Moved to eslint setup\n\n### 3.0.0\n\n- Changed to React 16.8+ with hooks. Dropped the getFilteredValue in favor of a reference filteredValue.\n\n### 2.0.0\n\n- Dropped pure input type. The component should only be used when markdown output has been requested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgforge%2Freactstrap-md-textarea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgforge%2Freactstrap-md-textarea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgforge%2Freactstrap-md-textarea/lists"}