{"id":15612080,"url":"https://github.com/hypercubed/angular-commonmark","last_synced_at":"2025-04-28T12:22:46.869Z","repository":{"id":21106549,"uuid":"24407003","full_name":"Hypercubed/angular-commonmark","owner":"Hypercubed","description":"CommonMark rendering in angularjs (A strongly specified, highly compatible implementation of Markdown).","archived":false,"fork":false,"pushed_at":"2015-05-07T02:13:27.000Z","size":606,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:31:34.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hypercubed.github.io/angular-commonmark/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tiantianlan/LiveExplanation","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hypercubed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-24T08:30:26.000Z","updated_at":"2019-12-20T08:17:31.000Z","dependencies_parsed_at":"2022-08-25T12:40:39.094Z","dependency_job_id":null,"html_url":"https://github.com/Hypercubed/angular-commonmark","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/Hypercubed%2Fangular-commonmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fangular-commonmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fangular-commonmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fangular-commonmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hypercubed","download_url":"https://codeload.github.com/Hypercubed/angular-commonmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311685,"owners_count":21569077,"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-03T06:21:48.030Z","updated_at":"2025-04-28T12:22:46.851Z","avatar_url":"https://github.com/Hypercubed.png","language":"JavaScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X7KYR6T9U2NHC"],"categories":[],"sub_categories":[],"readme":"# angular-CommonMark [![Bower version](https://badge.fury.io/bo/angular-CommonMark.svg)](http://badge.fury.io/bo/angular-CommonMark)\r\n===\r\n\r\nRender markdown in AngularJS using [CommonMark](http://commonmark.org/); A strongly specified, highly compatible implementation of Markdown.\r\n\r\n*Please note: neither this directive nor the CommonMark implementation does any type of sanitization.  As always, sanitizing is necessary for user-generated content.*\r\n\r\n[![get this with bower](http://benschwarz.github.io/bower-badges/badge@2x.png)](http://bower.io/ \"get this with bower\")\r\n\r\n## Usage\r\n1. `bower install Hypercubed/angular-commonmark`\r\n2. Include the `commonmarkjs` script into your app.  By default should be at `bower_components/commonmark/dist/commonmark.js`.\r\n3. Include the `angular-CommonMark.js` into your app.  By default should be at `bower_components/angular-commonmark/angular-commonmark.js`.\r\n4. Add `hc.commonmark` as a module dependency to your app.\r\n\r\n### As a directive\r\n\r\n```html\r\n\t\u003ccommon-mark\u003e\r\n\t     #Markdown directive\r\n\t     *It works!*  \r\n\t\u003c/common-mark\u003e\r\n```\r\n\r\nBind the markdown input to a scope variable:\r\n\r\n```html\r\n\t\u003cdiv common-mark=\"my_markdown\"\u003e\r\n\t\u003c/div\u003e\r\n\t\u003c!-- Uses $scope.my_markdown --\u003e\r\n```\r\n\r\nInclude a markdown file:\r\n\r\n```html\r\n\t\u003cdiv common-mark ng-include=\"'README.md'\"\u003e\r\n\t\u003c/div\u003e\r\n\t\u003c!-- Uses markdown content from README.md --\u003e\r\n```\r\n\r\n### As a service\r\n\r\n```js\r\n\tapp.controller('myCtrl', ['CommonMark', function(CommonMark) {\r\n\t  $scope.html = CommonMark('#TEST');\r\n\t}]);\r\n```\r\n\r\n## Testing\r\n\r\nInstall npm and bower dependencies:\r\n\r\n```bash\r\n\tnpm install\r\n\tbower install\r\n\tnpm test\r\n```\r\n\r\n## Acknowledgments\r\nBased on\r\n- [angular-marked](https://github.com/Hypercubed/angular-marked) by [Hypercubed](https://github.com/Hypercubed/) via\r\n- [angular-markdown-directive](https://github.com/btford/angular-markdown-directive) by [briantford](http://briantford.com/) via\r\n- [this excellent tutorial](http://blog.angularjs.org/2012/05/custom-components-part-1.html) by [@johnlinquist](https://twitter.com/johnlindquist).\r\n\r\nUsing\r\n- [commonmark.js](https://github.com/jgm/commonmark.js) by [John MacFarlane](https://github.com/jgm/)\r\n\r\n## License\r\nCopyright (c) 2014 Jayson Harshbarger [![Gittip donate button](http://img.shields.io/gratipay/Hypercubed.svg)](https://www.gittip.com/hypercubed/ \"Donate weekly to this project using Gittip\")\r\n[![Paypal donate button](http://img.shields.io/badge/paypal-donate-brightgreen.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X7KYR6T9U2NHC \"One time donation to this project using Paypal\")\r\n\r\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fangular-commonmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypercubed%2Fangular-commonmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fangular-commonmark/lists"}