{"id":15527165,"url":"https://github.com/sixlive/parsedown-highlight","last_synced_at":"2025-04-19T12:55:37.262Z","repository":{"id":33235983,"uuid":"156398051","full_name":"sixlive/parsedown-highlight","owner":"sixlive","description":"Extends Parsedown to add support for server side code block rendering","archived":false,"fork":false,"pushed_at":"2022-12-10T01:46:20.000Z","size":2285,"stargazers_count":23,"open_issues_count":20,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T02:59:48.573Z","etag":null,"topics":[],"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/sixlive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-06T14:41:49.000Z","updated_at":"2023-12-01T20:01:54.000Z","dependencies_parsed_at":"2023-01-15T00:15:16.237Z","dependency_job_id":null,"html_url":"https://github.com/sixlive/parsedown-highlight","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/sixlive%2Fparsedown-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fparsedown-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fparsedown-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fparsedown-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sixlive","download_url":"https://codeload.github.com/sixlive/parsedown-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249699450,"owners_count":21312401,"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":[],"created_at":"2024-10-02T11:04:48.963Z","updated_at":"2025-04-19T12:55:37.234Z","avatar_url":"https://github.com/sixlive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parsedown Highlight\n\n## *NOTE: This requires v1.8 of Parsedown, which has not been released yet.*\n\n[![Packagist Version](https://img.shields.io/packagist/v/sixlive/parsedown-highlight.svg?style=flat-square)](https://packagist.org/packages/sixlive/parsedown-highlight)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/sixlive/parsedown-highlight.svg?style=flat-square)](https://packagist.org/packages/sixlive/parsedown-highlight)\n[![Travis](https://img.shields.io/travis/sixlive/parsedown-highlight.svg?style=flat-square)](https://travis-ci.org/sixlive/parsedown-highlight)\n[![Code Quality](https://img.shields.io/scrutinizer/g/sixlive/parsedown-highlight.svg?style=flat-square)](https://scrutinizer-ci.com/g/sixlive/parsedown-highlight/)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/sixlive/parsedown-highlight.svg?style=flat-square)](https://scrutinizer-ci.com/g/sixlive/parsedown-highlight/)\n[![StyleCI](https://github.styleci.io/repos/156398051/shield)](https://github.styleci.io/repos/156398051)\n\nThis extends Parsedown to add support for server side code block rendering. This uses [scrivo/highlight.php](https://github.com/scrivo/highlight.php) to do all the code block rendering. This will be fully compatible with Highlight JS.\n\n## Installation\nYou can install the package via composer:\n\n```bash\n\u003e composer require sixlive/parsedown-highlight\n```\n\n## Usage\n\n```md\n# Hello!\n\nHere is a post with some code in it.\n\n\\```php\n\u003c?php\n\necho 'foo';\n\\```\n\n\\```asldfh\nput 'WHOOP!'\n\\```\n```\n\n```php\n$parsedown = new \\sixlive\\ParsedownHighlight;\n\n$parsedown-\u003etext(file_get_contents(__DIR__.'/README.md'));\n```\n\n```html\n\u003ch1\u003eHello!\u003c/h1\u003e\n\u003cp\u003eHere is a post with some code in it.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-php hljs php\"\u003e\u003cspan class=\"hljs-meta\"\u003e\u0026lt;?php\u003c/span\u003e\n\n\u003cspan class=\"hljs-keyword\"\u003eecho\u003c/span\u003e \u003cspan class=\"hljs-string\"\u003e'foo'\u003c/span\u003e;\u003c/code\u003e\u003c/pre\u003e\n\u003cpre\u003e\u003ccode class=\"language-asldfh\"\u003eput 'WHOOP!'\u003c/code\u003e\u003c/pre\u003e\n```\n\n### Using Parsedown Extra\n**Note: This requires version [0.8.0-beta-1](https://github.com/erusev/parsedown-extra/releases/tag/0.8.0-beta-1)**\n\n```php\n$parsedown = new \\sixlive\\ParsedownHighlightExtra;\n\n$parsedown-\u003etext(file_get_contents(__DIR__.'/README.md'));\n```\n\n\n## Testing\n\n``` bash\n\u003e composer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Code Style\nIn addition to the php-cs-fixer rules, StyleCI will apply the [Laravel preset](https://docs.styleci.io/presets#laravel).\n\n### Linting\n```bash\n\u003e composer styles:lint\n```\n\n### Fixing\n```bash\n\u003e composer styles:fix\n```\n\n## Security\n\nIf you discover any security related issues, please email oss@tjmiller.co instead of using the issue tracker.\n\n## Credits\n\n- [TJ Miller](https://github.com/sixlive)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fparsedown-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixlive%2Fparsedown-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fparsedown-highlight/lists"}