{"id":15355079,"url":"https://github.com/adhocore/htmlup","last_synced_at":"2025-04-15T06:17:38.071Z","repository":{"id":52442157,"uuid":"20793745","full_name":"adhocore/htmlup","owner":"adhocore","description":"Light and fast markdown parser, that parses markdown in a way human does","archived":false,"fork":false,"pushed_at":"2022-09-26T15:42:43.000Z","size":79,"stargazers_count":51,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T06:17:32.594Z","etag":null,"topics":["adhocore","htmlup","markdown","markdown-parser","markdown-to-html","php","php-markdown-parser"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/adhocore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"adhocore","custom":["https://paypal.me/ji10"]}},"created_at":"2014-06-13T05:59:19.000Z","updated_at":"2025-04-13T14:48:56.000Z","dependencies_parsed_at":"2022-08-18T21:22:43.670Z","dependency_job_id":null,"html_url":"https://github.com/adhocore/htmlup","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhocore%2Fhtmlup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhocore%2Fhtmlup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhocore%2Fhtmlup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhocore%2Fhtmlup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adhocore","download_url":"https://codeload.github.com/adhocore/htmlup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016647,"owners_count":21198833,"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","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":["adhocore","htmlup","markdown","markdown-parser","markdown-to-html","php","php-markdown-parser"],"created_at":"2024-10-01T12:22:24.713Z","updated_at":"2025-04-15T06:17:38.045Z","avatar_url":"https://github.com/adhocore.png","language":"PHP","funding_links":["https://github.com/sponsors/adhocore","https://paypal.me/ji10","https://www.paypal.me/ji10/15usd","https://www.paypal.me/ji10/25usd","https://www.paypal.me/ji10/50usd"],"categories":[],"sub_categories":[],"readme":"## adhocore/htmlup\n\n[![Latest Version](https://img.shields.io/github/release/adhocore/htmlup.svg?style=flat-square)](https://github.com/adhocore/htmlup/releases)\n[![Travis Build](https://img.shields.io/travis/adhocore/htmlup/master.svg?style=flat-square)](https://travis-ci.org/adhocore/htmlup?branch=master)\n[![Scrutinizer CI](https://img.shields.io/scrutinizer/g/adhocore/htmlup.svg?style=flat-square)](https://scrutinizer-ci.com/g/adhocore/htmlup/?branch=master)\n[![Codecov branch](https://img.shields.io/codecov/c/github/adhocore/htmlup/master.svg?style=flat-square)](https://codecov.io/gh/adhocore/htmlup)\n[![StyleCI](https://styleci.io/repos/20793745/shield)](https://styleci.io/repos/20793745)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Donate 15](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square\u0026label=donate+15)](https://www.paypal.me/ji10/15usd)\n[![Donate 25](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square\u0026label=donate+25)](https://www.paypal.me/ji10/25usd)\n[![Donate 50](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square\u0026label=donate+50)](https://www.paypal.me/ji10/50usd)\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Lightweight+and+fast+markdown+to+HTML+parser+for+PHP\u0026url=https://github.com/adhocore/htmlup\u0026hashtags=php,markdown,markdownparser,phpmarkdown)\n\n\n`htmlup` is ultra lightweight and uber speedy markdown to html parser written in PHP.\n**Concept** - it splits the markdown into lines and parses to markup one by one, finally applies markdown syntaxes on the markup.\nIt supports most of the markdown as in [specs](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet \"cheatsheet\").\n\n\n# installation\n\nRun `composer require adhocore/htmlup`\n\n\n# usage\n\n```php\n\u003c?php\n\nuse Ahc\\HtmlUp;\n\n// require '/path/to/vendor/autoload.php';\n\n// Defaults to 4 space indentation.\necho new Ahc\\HtmlUp($markdownText);\n\n// Force 2 space indentation.\necho new HtmlUp($markdownText, 2);\n\n// Also possible:\necho (new Htmlup)-\u003eparse($markdownText);\n```\n\n\n# features\n\n## nesting\n\nIt provides limited support to deep nested elements, supported items are:\n\n- lists inside lists\n- blockquotes inside blockcodes\n- lists inside blockquotes\n\n## raw html\n\nyou can throw in your raw html but with a blank line at start and end to delimit the block at like so-\n\n```html\n\n\u003cdl\u003e\n  \u003cdt\u003e\n  \tA\n  \u003c/dt\u003e\n  \u003cdd\u003eApple\n  \t\u003c/dd\u003e\n  \t\u003cdt\u003eB\n  \u003c/dt\u003e\n  \u003cdd\u003e\n  Ball\u003c/dd\u003e\n\u003c/dl\u003e\n\n```\n\n## table\n\nsupports [GFM table syntax](https://help.github.com/articles/github-flavored-markdown/#tables), example:\n\n```\na | b | c\n--- |----| ---\n1 | 2  |3\n 4| 5 | 6\n```\n\nis rendered as:\n\na | b | c\n--- |----| ---\n1 | 2  |3\n 4| 5 | 6\n\n\n# todo\n\n- make robust, and provide full support of spec\n- ~~handle markdown table syntax~~\n- **markdown extra** however, is _not planned_ :(\n\n\n## contributing\n\n- fork and pull request for patch/fix\n- create issue for _breaking_ bugs and severe markdown spec violation\n- please check [the guide](./CONTRIBUTING.md)\n\n## license\n\n\u003e \u0026copy; 2014-2018 | **Jitendra Adhikari** | [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhocore%2Fhtmlup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadhocore%2Fhtmlup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhocore%2Fhtmlup/lists"}