{"id":15130804,"url":"https://github.com/timhaj/md2html","last_synced_at":"2025-08-30T15:06:07.231Z","repository":{"id":257591507,"uuid":"858740895","full_name":"timhaj/md2HTML","owner":"timhaj","description":"Markdown to HTML parser","archived":false,"fork":false,"pushed_at":"2024-09-18T19:21:10.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T20:12:13.032Z","etag":null,"topics":["html","javascript","javascript-library","markdown","markdown-to-html","parser"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/timhaj.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":"2024-09-17T13:04:30.000Z","updated_at":"2024-09-18T19:21:13.000Z","dependencies_parsed_at":"2024-10-31T11:25:34.943Z","dependency_job_id":"a449a7e9-d207-40dd-bce5-38a3e32ba756","html_url":"https://github.com/timhaj/md2HTML","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"c2fe579365d86d7562ff3d064058b6bcddef787b"},"previous_names":["timhaj/m-h-p.js","timhaj/md2html"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timhaj/md2HTML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timhaj%2Fmd2HTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timhaj%2Fmd2HTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timhaj%2Fmd2HTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timhaj%2Fmd2HTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timhaj","download_url":"https://codeload.github.com/timhaj/md2HTML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timhaj%2Fmd2HTML/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272864671,"owners_count":25006044,"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-30T02:00:09.474Z","response_time":77,"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":["html","javascript","javascript-library","markdown","markdown-to-html","parser"],"created_at":"2024-09-26T03:06:31.510Z","updated_at":"2025-08-30T15:06:07.213Z","avatar_url":"https://github.com/timhaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md2HTML\nA lightweight markdown to HTML parser (5 kB standrad, 3 kB .min version).\n\n## Usage\n- Download `main.js` or `main.min.js` if you're having to much overhead (weird, but ok).\n- Make sure you're using the correct markdown syntax, as shown [here](https://www.markdownguide.org/cheat-sheet/).\n- You can use it in two ways:\n  - Static: by just calling `md2HTML()`, the parser will select all div's with `md2HTML` class, and apply the parsing inside its text content.\n  - Dynamic: by calling `div.innerHTML = md2HTMLParseElementText(div.textContent)`, the parser will parse the text inside the div text contents you passed as a argument. \n- See `demo.html` for a example how the parser works.\n\n## Supports the following markdown elements:\n- Headings\n- Bold\n- Italic\n- Code emphasis\n- Blockquote\n- Ordered list\n- Unordered list\n- Horizontal rule\n- Link\n- Image\n- Code blocks\n- Tables\n\n## Markdown elements and their conversions in HTML:\n| Markdown element | HTML conversion |\n| :----: | :----: |\n| # Heading | `\u003ch1\u003e Heading \u003c/h1\u003e` |\n| ## Heading | `\u003ch2\u003e Heading \u003c/h1\u003e` |\n| ### Heading | `\u003ch3\u003e Heading \u003c/h1\u003e` |\n| #### Heading | `\u003ch4\u003e Heading \u003c/h1\u003e` |\n| ##### Heading | `\u003ch5\u003e Heading \u003c/h1\u003e` |\n| ###### Heading | `\u003ch6\u003e Heading \u003c/h1\u003e` |\n| `**Bold**` | `\u003cstrong\u003eBold\u003c/strong\u003e` |\n| `*Italic*` | `\u003cem\u003eItalic\u003c/em\u003e` |\n| `Code emphasis` (has ` ) | `\u003ccode\u003eCode emphasis\u003c/code\u003e` |\n| `\u003e Quote` | `\u003cblockquote\u003eQuote\u003c/blockquote\u003e` |\n| `***` | `\u003chr\u003e` |\n| `---` | `\u003chr\u003e` |\n| `___` | `\u003chr\u003e` |\n| `[Title](https://link.to.somewhere)` | `\u003ca href=\"https://link.to.somewhere\"\u003eTitle\u003c/a\u003e` |\n| `![Alt text](img.png)` | `\u003cimg src=\"img.png\" alt=\"Alt text\"/\u003e` |\n\n## Contributions, issues,...\n- Found any issues or want to add other complex/extended markdown syntax? Simply open a issue/PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimhaj%2Fmd2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimhaj%2Fmd2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimhaj%2Fmd2html/lists"}