{"id":13509316,"url":"https://github.com/showdownjs/ng-showdown","last_synced_at":"2025-04-05T08:08:42.213Z","repository":{"id":25837119,"uuid":"29276579","full_name":"showdownjs/ng-showdown","owner":"showdownjs","description":"Angular integration for Showdown","archived":false,"fork":false,"pushed_at":"2019-12-30T01:46:11.000Z","size":943,"stargazers_count":106,"open_issues_count":6,"forks_count":33,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T07:08:59.404Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/showdownjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2015-01-15T02:23:36.000Z","updated_at":"2024-10-04T20:32:05.000Z","dependencies_parsed_at":"2022-08-24T14:14:46.991Z","dependency_job_id":null,"html_url":"https://github.com/showdownjs/ng-showdown","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showdownjs%2Fng-showdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showdownjs%2Fng-showdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showdownjs%2Fng-showdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showdownjs%2Fng-showdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showdownjs","download_url":"https://codeload.github.com/showdownjs/ng-showdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305935,"owners_count":20917208,"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-08-01T02:01:06.084Z","updated_at":"2025-04-05T08:08:42.194Z","avatar_url":"https://github.com/showdownjs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ng-showdown\n\nAngular integration for [Showdown](https://github.com/showdownjs/showdown)\n\n## How to use it\n\n1. Install it\n\n  a. via bower:\n  ```\n  bower install --save ng-showdown\n  ```\n  b. via npm\n  ```\n  npm install --save ng-showdown\n  ```\n2. Include `'ng-showdown'` in your module dependencies\n3. Use it\n  ```\n  \u003cp markdown-to-html=\"vm.mymarkdown\"\u003e\u003c/p\u003e\n  ```\n\n## Dependencies\n\nng-showdown depends on the [ngSanitize module](https://docs.angularjs.org/api/ngSanitize). Don't forget to include it:\n\n```html\n\u003cscript src=\"angular.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"angular-sanitize.js\"\u003e\u003c/script\u003e\n```\n  \n## API\n\n#### `$showdown`\n\n`$showdown.makeHtml(markdown)` - Converts a markdown text into HTML\n\nInput: *string* - markdown to be parsed\n\nOutput: *string* - html output from showdown\n\n`$showdown.stripHtml` - Strips a text of it's HTML tags. See http://stackoverflow.com/questions/17289448/angularjs-to-output-plain-text-instead-of-html\n\nInput: *string* - html to be stripped\n\nOutput: *string* - string without `\u003chtml\u003e` tags\n\n#### `markdownToHtml` directive\n\nExample usage:\n```\n \u003cp markdown-to-html=\"vm.mymarkdown\"\u003e\u003c/p\u003e\n```\n\nInput: *string* - markdown to be parsed\n\nOutput: *string* - html output from showdown\n\n#### `stripHtml` filter\n\nExample usage:\n```\n \u003cp ng-bind=\"vm.someText | stripHtml\"\u003e\u003c/p\u003e\n```\n\nInput: *string* - Input to be stripped of html\n\nOutput: *string* - stripped html\n\n## Configuration\n\nYou can configure the options and extensions passed to showdown by using the `$showdownProvider`. To see these options, visit the [Showdown page](https://github.com/showdownjs/showdown).\n\n`$showdownProvider.setOption(key, value)` - sets the passed in option as a configuration option in showdown\n\n`$showdownProvider.getOption(key)` - get the option as determined by the passed in key.\n\n`$showdownProvider.loadExtension(extensionName)` - loads the extension into showdown as determined by the passed in extension name\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowdownjs%2Fng-showdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowdownjs%2Fng-showdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowdownjs%2Fng-showdown/lists"}