{"id":22798656,"url":"https://github.com/ralphpina/markdownparser","last_synced_at":"2026-04-30T10:38:16.854Z","repository":{"id":147150228,"uuid":"351648078","full_name":"ralphpina/MarkdownParser","owner":"ralphpina","description":"Kotlin Multiplatform Markdown parser with support for bold, underline, italics, and hyperlinks.","archived":false,"fork":false,"pushed_at":"2021-03-26T17:11:27.000Z","size":290,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T18:44:16.693Z","etag":null,"topics":["android","ios","kotlin","multiplatform","multiplatform-kotlin-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/ralphpina.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":"2021-03-26T03:17:16.000Z","updated_at":"2023-01-01T08:37:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"53eca2db-74fe-4d3e-b613-13612d70b785","html_url":"https://github.com/ralphpina/MarkdownParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ralphpina/MarkdownParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralphpina%2FMarkdownParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralphpina%2FMarkdownParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralphpina%2FMarkdownParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralphpina%2FMarkdownParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ralphpina","download_url":"https://codeload.github.com/ralphpina/MarkdownParser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ralphpina%2FMarkdownParser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32462304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["android","ios","kotlin","multiplatform","multiplatform-kotlin-library"],"created_at":"2024-12-12T06:10:39.680Z","updated_at":"2026-04-30T10:38:16.826Z","avatar_url":"https://github.com/ralphpina.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"MarkdownParser\n---\n\nThis is a simple POC to parse a subset of markdown and render it in Android and iOS.\n\n### Supported Markdown Styles\n\nThis POC tries to handle the following markdown styles:\n\n- bold: `**bold**`\n- underline: `__underline__`\n- italic: `_italic_`\n- hyperlink: `[link text](http://google.com)`\n\n### Shared\n- [MarkdownParser.kt](/shared/src/commonMain/kotlin/net/ralphpina/markdownparser/shared/MarkdownParser.kt): exposes a parse() method that returns the copy and a list of entities.\n\n### Android\n- [AndroidMarkdownRenderer.kt](/androidApp/src/main/java/net/ralphpina/markdownparser/androidApp/AndroidMarkdownRenderer.kt): exposes a couple of extension methods to add markdown to a `TextView` and `Button`.\n\n### iOS\n- TODO: we need to implement this, probably using [NSAttributedString or UIFont](https://stackoverflow.com/questions/25025779/setting-uilabel-text-to-bold). I need to explore this.\n\n- We welcome contributions :)\n\n### Example\nThus, the following copy: \n```kotlin\nval markdown = \"Some text is **bold**. While some text is _italic_. Other is __underlined__. Lastly we have [link](http://google.com).\"\n```\n\nUsed like so in **Android**:\n\n```kotlin\nval textView = findViewById\u003cTextView\u003e(R.id.text_view)\nval button = findViewById\u003cButton\u003e(R.id.button)\ntextView.renderMarkdown(markdown)\nbutton.renderMarkdown(markdown)\n```\n\nIs rendered like so:\n![screenshot](imgs/sample.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralphpina%2Fmarkdownparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fralphpina%2Fmarkdownparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralphpina%2Fmarkdownparser/lists"}