{"id":13500666,"url":"https://github.com/developit/snarkdown","last_synced_at":"2025-05-14T04:00:16.777Z","repository":{"id":22849428,"uuid":"26196809","full_name":"developit/snarkdown","owner":"developit","description":":smirk_cat: A snarky 1kb Markdown parser written in JavaScript","archived":false,"fork":false,"pushed_at":"2022-11-29T17:36:42.000Z","size":207,"stargazers_count":2339,"open_issues_count":43,"forks_count":109,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-05-13T22:26:53.074Z","etag":null,"topics":["javascript","markdown","parser"],"latest_commit_sha":null,"homepage":"http://jsfiddle.net/developit/828w6t1x/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ABSAhmad/IpsTeamSpeakIntegration","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developit.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}},"created_at":"2014-11-05T01:16:49.000Z","updated_at":"2025-05-10T14:35:05.000Z","dependencies_parsed_at":"2022-07-12T16:07:31.034Z","dependency_job_id":null,"html_url":"https://github.com/developit/snarkdown","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fsnarkdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fsnarkdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fsnarkdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fsnarkdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/snarkdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254038128,"owners_count":22004030,"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":["javascript","markdown","parser"],"created_at":"2024-07-31T22:01:09.276Z","updated_at":"2025-05-14T04:00:16.673Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/emojione/assets/svg/1f63c.svg\" width=\"256\" height=\"256\" alt=\"Snarkdown\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  Snarkdown\n  \u003ca href=\"https://www.npmjs.org/package/snarkdown\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/snarkdown.svg?style=flat\" alt=\"npm\"\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\nSnarkdown is a dead simple **1kb** [Markdown] parser.\n\nIt's designed to be as minimal as possible, for constrained use-cases where a full Markdown parser would be inappropriate.\n\n\n## Features\n\n- **Fast:** since it's basically one regex and a huge if statement\n- **Tiny:** it's 1kb of gzipped ES3\n- **Simple:** pass a Markdown string, get back an HTML string\n\n\u003e **Note:** Tables are not yet supported. If you love impossible to read regular expressions, submit a PR!\n\u003e\n\u003e **Note on XSS:** Snarkdown [doesn't sanitize HTML](https://github.com/developit/snarkdown/issues/70), since its primary target usage doesn't require it.\n\n## Demos \u0026 Examples\n\n- ⚛️ [**Snarky**](https://snarky.surge.sh) - markdown editor built with Preact \u0026 Snarkdown\n- ✏️ [**Simple Markdown Editor**](http://jsfiddle.net/developit/828w6t1x/)\n\n\n## Usage\n\nSnarkdown exports a single function, which parses a string of Markdown and returns a String of HTML. Couldn't be simpler.\n\nThe snarkdown module is available in [every module format](https://unpkg.com/snarkdown/dist/) you'd ever need: ES Modules, CommonJS, UMD...\n\n```js\nimport snarkdown from 'snarkdown';\n\nlet md = '_this_ is **easy** to `use`.';\nlet html = snarkdown(md);\nconsole.log(html);\n// \u003cem\u003ethis\u003c/em\u003e is \u003cstrong\u003eeasy\u003c/strong\u003e to \u003ccode\u003euse\u003c/code\u003e.\n```\n\n### Add-ons and Libraries\n\n- For Webpack users, [`snarkdown-loader`](https://github.com/Plugin-contrib/snarkdown-loader) renders markdown files to html.\n\n\n\n[Markdown]: http://daringfireball.net/projects/markdown/\n","funding_links":[],"categories":["JavaScript","markdown","Packages","Libraries","javascript",":clap: 欢迎参与​"],"sub_categories":["Parsing","JavaScript","工具库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fsnarkdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fsnarkdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fsnarkdown/lists"}