{"id":18229280,"url":"https://github.com/tryfabric/mack","last_synced_at":"2026-03-09T10:02:35.919Z","repository":{"id":42670882,"uuid":"380310956","full_name":"tryfabric/mack","owner":"tryfabric","description":"Markdown To Slack: Convert Markdown and GitHub Flavoured Markdown to Slack BlockKit block objects 🔀💬","archived":false,"fork":false,"pushed_at":"2023-10-18T12:34:47.000Z","size":652,"stargazers_count":61,"open_issues_count":12,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T12:20:35.086Z","etag":null,"topics":["ast","fabric","markdown","slack"],"latest_commit_sha":null,"homepage":"","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/tryfabric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-06-25T17:29:16.000Z","updated_at":"2025-10-16T00:40:56.000Z","dependencies_parsed_at":"2024-06-19T19:21:26.346Z","dependency_job_id":null,"html_url":"https://github.com/tryfabric/mack","commit_stats":{"total_commits":31,"total_committers":5,"mean_commits":6.2,"dds":0.5806451612903225,"last_synced_commit":"2d8fe99b7b9b0cebfd58f850e264eb9b02f1ffe7"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tryfabric/mack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryfabric%2Fmack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryfabric%2Fmack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryfabric%2Fmack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryfabric%2Fmack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryfabric","download_url":"https://codeload.github.com/tryfabric/mack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryfabric%2Fmack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30290928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ast","fabric","markdown","slack"],"created_at":"2024-11-04T09:03:49.607Z","updated_at":"2026-03-09T10:02:35.875Z","avatar_url":"https://github.com/tryfabric.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mack: Markdown to Slack Message Blocks\n\n\u003e Convert Markdown and GitHub Flavoured Markdown to Slack BlockKit Blocks\n\n[![Node.js CI](https://github.com/rr-codes/mack/actions/workflows/ci.yml/badge.svg)](https://github.com/rr-codes/mack/actions/workflows/ci.yml)\n[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)\n\nMack is a Markdown parser to convert any Markdown content to Slack BlockKit block objects.\n\nText is truncated to fit within the Slack API's limits.\n\n### Supported Markdown Elements\n\n- All inline elements (italics, bold, strikethrough, inline code, hyperlinks)\n- Lists (ordered, unordered, checkboxes)\n- All headers\n- Code blocks\n- Block quotes (with some limitations)\n- Images\n- Thematic Breaks / Dividers\n- Tables (alignment not preserved)\n\n### Not Yet Supported Markdown Elements\n\n- Block quotes (limited functionality; does not support lists, headings, or images within the block quote)\n\n## Installation\n\n```\nnpm install @tryfabric/mack\n```\n\n## Usage\n\n```ts\nimport {markdownToBlocks} from '@tryfabric/mack';\n\nconst blocks = markdownToBlocks(`\n# Hello world\n\n* bulleted item 1\n* bulleted item 2\n\nabc _123_\n\n![cat](https://images.unsplash.com/photo-1574158622682-e40e69881006)\n`);\n```\n\nThe `blocks` object now results in [this](https://app.slack.com/block-kit-builder/T01BFUV9UPJ#%7B%22blocks%22:%5B%7B%22text%22:%7B%22text%22:%22Hello%20world%22,%22type%22:%22plain_text%22%7D,%22type%22:%22header%22%7D,%7B%22text%22:%7B%22text%22:%22•%20bulleted%20item%201%5Cn•%20bulleted%20item%202%22,%22type%22:%22mrkdwn%22%7D,%22type%22:%22section%22%7D,%7B%22text%22:%7B%22text%22:%22abc%20_123_%22,%22type%22:%22mrkdwn%22%7D,%22type%22:%22section%22%7D,%7B%22alt_text%22:%22cat%22,%22image_url%22:%22https://images.unsplash.com/photo-1574158622682-e40e69881006?w=640%22,%22type%22:%22image%22%7D%5D%7D) payload.\n\n## API\n\n`function markdownToBlocks(text: string, options: ParsingOptions): KnownBlock[]`\n\n- `text`: the content to parse\n- `options`: the options to use when parsing.\n\n### Parsing Options\n\n```ts\ninterface ParsingOptions {\n  // Configure how lists are displayed\n  lists?: ListOptions;\n}\n\ninterface ListOptions {\n  // Configure how checkbox list items are displayed. By default, they are prefixed with '* '\n  checkboxPrefix?: (checked: boolean) =\u003e string;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryfabric%2Fmack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryfabric%2Fmack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryfabric%2Fmack/lists"}