{"id":21678341,"url":"https://github.com/ifyun/markdown-it-android","last_synced_at":"2026-04-26T20:31:54.236Z","repository":{"id":115962103,"uuid":"349337378","full_name":"ifyun/markdown-it-android","owner":"ifyun","description":"Android Markdown View","archived":false,"fork":false,"pushed_at":"2021-06-28T09:52:17.000Z","size":2457,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T09:15:08.095Z","etag":null,"topics":["android-library","custom-view","markdown","markdown-viewer"],"latest_commit_sha":null,"homepage":"","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/ifyun.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}},"created_at":"2021-03-19T07:30:31.000Z","updated_at":"2024-08-19T07:13:58.000Z","dependencies_parsed_at":"2023-06-04T21:00:27.108Z","dependency_job_id":null,"html_url":"https://github.com/ifyun/markdown-it-android","commit_stats":null,"previous_names":["ifyun/markdown-it-android"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ifyun/markdown-it-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifyun%2Fmarkdown-it-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifyun%2Fmarkdown-it-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifyun%2Fmarkdown-it-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifyun%2Fmarkdown-it-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifyun","download_url":"https://codeload.github.com/ifyun/markdown-it-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifyun%2Fmarkdown-it-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":["android-library","custom-view","markdown","markdown-viewer"],"created_at":"2024-11-25T14:28:12.918Z","updated_at":"2026-04-26T20:31:54.216Z","avatar_url":"https://github.com/ifyun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-it-android\n\n![License](https://img.shields.io/github/license/imcloudfloating/markdown-it-android)\n![JitPack](https://jitpack.io/v/imcloudfloating/markdown-it-android.svg)\n\n\nMarkdown View for Android, based on [markdown-it](https://github.com/markdown-it/markdown-it) and WebView.\n\n## Preview\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003cimg src=\"./assets/1.png\" width=\"300em\"\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"./assets/2.png\" width=\"300em\"\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003cimg src=\"./assets/3.png\" width=\"300em\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Features\n\n- Auto fit system theme\n- Code Highlighting([highlight.js](https://github.com/highlightjs/highlight.js))\n- HTML\n- KaTeX([katex](https://github.com/KaTeX/KaTeX) and [markdown-it-katex](https://github.com/waylonflinn/markdown-it-katex))\n- Container(info, success, warning, error)\n\n## Usage\n\n### Setup\n\nAdd it in your root build.gradle at the end of repositories(for older gradle version):\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nOr add following to settings.gradle(for newer gradle version):\n\n```groovy\ndependencyResolutionManagement {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd the dependency:\n\n```groovy\ndependencies {\n\timplementation 'com.github.imcloudfloating:markdown-it-android:1.0.4'\n}\n```\n\n### Use in project\n\n**Required SDK Version \u003e= 22**.\n\nData Binding:\n\n```xml\n\u003ccom.github.imcloudfloating.markdown.MarkdownIt\n    android:id=\"@+id/markdown_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:markdownString=\"@{viewModel.content}\" /\u003e\n```\n\nNo Data Binding:\n\n```kotlin\nval md = \"# Hello, Markdown!\"\n\nfindViewById\u003cMarkdownIt\u003e(R.id.markdown_view).markdownString = md\n```\n\n\u003e If the HTTP image link cannot be displayed, add `android:usesCleartextTraffic=\"true\"` to `AndroidManifest.xml` of your project.\n\n### Fields and methods\n\n| Field/Method       | Note                                                         |\n| ------------------ | ------------------------------------------------------------ |\n| `fitSystemTheme`   | Default is `true`, auto fit system theme.                    |\n| `darkTheme`        | Use dark theme when `fitSystemTheme = false`                 |\n| `markdownString`   | The markdown content you want to show.                       |\n| `urlClickListener` | Click listener for link.                                     |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifyun%2Fmarkdown-it-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifyun%2Fmarkdown-it-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifyun%2Fmarkdown-it-android/lists"}