{"id":18332479,"url":"https://github.com/cellular/tinymd","last_synced_at":"2025-08-21T17:07:16.913Z","repository":{"id":66017041,"uuid":"98521089","full_name":"cellular/tinymd","owner":"cellular","description":"Tiny markdown processor","archived":false,"fork":false,"pushed_at":"2017-11-15T09:41:25.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-06T19:24:02.604Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cellular.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":"2017-07-27T09:56:22.000Z","updated_at":"2023-09-19T13:58:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"44e03323-05bc-4dd8-87dc-d25cb8258ac5","html_url":"https://github.com/cellular/tinymd","commit_stats":null,"previous_names":["fgnass/tinymd"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cellular/tinymd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Ftinymd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Ftinymd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Ftinymd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Ftinymd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cellular","download_url":"https://codeload.github.com/cellular/tinymd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Ftinymd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083968,"owners_count":24696416,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-05T19:39:11.319Z","updated_at":"2025-08-21T17:07:16.873Z","avatar_url":"https://github.com/cellular.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinymd 💃\n\n[![Build Status](https://travis-ci.org/fgnass/tinymd.svg?branch=master)](https://travis-ci.org/fgnass/tinymd) ![Bundle size](http://img.badgesize.io/https://unpkg.com/tinymd?compression=gzip)\n\n## Why\n\nAll other solutions were either _too large_ to be used in webapps where bundle size is important or _too constraint_ (like missing support for paragraphs or nested lists).\n\nTinymd tries to strike a good balance between size and features. It's fully tested and works in browsers as well as in Node.\n\nThe underlying parsing alorithm is heavily based on Vladimir Antonov's [nano-markdown](https://github.com/Holixus/nano-markdown) implementation.\n\n## Basic Usage\n\n```js\nimport tinymd from 'tinymd';\n\nconst opts = {};\nconst html = tinymd('', opts);\n```\n\n### Supported markdown syntax\n\n```markdown\n# tinymd\n\nsupports ...\n\n* lists\n  - nested lists\n    1. ordered\n    2. with [links](http://example.com)\n  - ![images](/cat.jpg)\n  - rulers\n\n----\n\nAll ~~common~~ **inline** _styles_\n\n    code blocks\n    rulers\n\nAnd \\[escaping]\\(of special chars).\n```\n\n## Options\n\n### Target _blank\n\nBy default all links starting with `+` will get `target=\"_blank\"` attribute. You can customize this behavior by providing an `isBlank` function:\n\n```js\ntinynmd('[link](http://example.com)', {\n  isBlank: ref =\u003e ~ref.indexOf('://')\n  }\n};\n```\n\n### Rewriting URLs\n\nYou can rewrite all links and image sources by providing a `rewrite` function:\n\n```js\ntinynmd('[Issue 42](#42)', {\n  rewrite: s =\u003e {\n    const m = /^#(\\d+)/.exec(s);\n    return m ? `/issue${m[1]}` : s;\n  }\n};\n```\n\n### Adding headline anchors\n\n```js\ntinynmd('# hello world', { addIds: true });\n// \u003ch1 id=\"hello_world\"\u003ehello world\u003c/h1\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellular%2Ftinymd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcellular%2Ftinymd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellular%2Ftinymd/lists"}