{"id":23674037,"url":"https://github.com/farism/mint-micromark","last_synced_at":"2026-04-24T20:31:20.602Z","repository":{"id":195260512,"uuid":"692572059","full_name":"farism/mint-micromark","owner":"farism","description":"A Mint package to work with markdown","archived":false,"fork":false,"pushed_at":"2023-09-22T08:21:27.000Z","size":1021,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-28T16:49:34.807Z","etag":null,"topics":["markdown","micromark","mint-lang"],"latest_commit_sha":null,"homepage":"https://farism.github.io/mint-micromark/","language":"Mint","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farism.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-16T22:31:00.000Z","updated_at":"2023-09-16T22:33:10.000Z","dependencies_parsed_at":"2025-02-19T17:52:30.268Z","dependency_job_id":null,"html_url":"https://github.com/farism/mint-micromark","commit_stats":null,"previous_names":["farism/mint-micromark"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/farism/mint-micromark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Fmint-micromark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Fmint-micromark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Fmint-micromark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Fmint-micromark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farism","download_url":"https://codeload.github.com/farism/mint-micromark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Fmint-micromark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32239446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["markdown","micromark","mint-lang"],"created_at":"2024-12-29T12:59:11.178Z","updated_at":"2026-04-24T20:31:20.584Z","avatar_url":"https://github.com/farism.png","language":"Mint","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mint Micromark\n\n[![CI](https://github.com/farism/mint-micromark/actions/workflows/ci.yml/badge.svg)](https://github.com/farism/mint-micromark/actions/workflows/ci.yml)\n\n[Mint](https://mint-lang.com/) package for converting markdown to html. Uses [Micromark](https://github.com/micromark/micromark) under the hood.\n\n# [Demo](https://farism.github.io/mint-micromark/demo)\n\n# Basic usage\n\nThe easiest way to use Micromark is with `Micromark.Component`:\n\n```mint\ncomponent Main {\n  fun render {\n    \u003cMicromark.Component content=\"# Hello world\"/\u003e\n  }\n}\n```\n\n# Extensions\n\nYou can enable extensions to unlock additional functionality:\n\n```mint\ncomponent Main {\n  fun render {\n    \u003cMicromark.Component\n      extensions=[Micromark.Extension::Gfm]\n      content=\"~~strikethrough~~\"/\u003e\n  }\n}\n```\n\n# Advanced usage\n\nIf you want to directly access micromark, you can use the `Micromark.load` API\n\n```mint\ncomponent Main {\n  state micromark : Maybe(Function(String, String)) = (content: String) {content}\n\n  fun componentDidMount {\n    let micromark =\n      await Micromark.load([Micromark.Extension::Gfm])\n\n    next { micromark: Maybe::Just(micromark) }\n  }\n\n  fun render {\n    case micromark {\n      =\u003e \u003c\u003e\u003c/\u003e\n\n      Maybe::Just(micromark) =\u003e\n        {\n          let html =\n            micromark(content)\n\n          \u003cdiv dangerouslySetInnerHTML={`{__html: #{html}}`}/\u003e\n        }\n    }\n  }\n}\n\n```\n\n# Why this package?\n\nMint supports out of the box markdown rendering using a here doc:\n\n```\n\u003c\u003c#MARKDOWN\n# Hello world!\nMARKDOWN\n```\n\nThis is an amazing feature and great for simple markdown.\n\nHowever, the [Crystal shard](https://github.com/icyleaf/markd) used to enable this feature doesn't have support for some popular markdown extensions like GFM.\n\n# Goals\n\n- Be extremely easy to use\n- On-demand loading - extensions and css are optional and loaded on demand\n\n# Non-goals\n\n- Be fully featured. This package intentionally uses Micromark as the underlying markdown engine because micromark about as minimal as it can get.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Fmint-micromark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarism%2Fmint-micromark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Fmint-micromark/lists"}