{"id":40487643,"url":"https://github.com/torchlight-api/torchlight-ibis","last_synced_at":"2026-01-20T18:48:44.948Z","repository":{"id":48206261,"uuid":"391196033","full_name":"torchlight-api/torchlight-ibis","owner":"torchlight-api","description":"An Ibis client for Torchlight - the syntax highlighting API.","archived":false,"fork":false,"pushed_at":"2021-08-05T01:10:54.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T16:51:02.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://torchlight.dev","language":"PHP","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/torchlight-api.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-30T22:00:41.000Z","updated_at":"2023-04-04T02:44:35.000Z","dependencies_parsed_at":"2022-08-12T19:41:23.357Z","dependency_job_id":null,"html_url":"https://github.com/torchlight-api/torchlight-ibis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/torchlight-api/torchlight-ibis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-ibis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-ibis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-ibis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-ibis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torchlight-api","download_url":"https://codeload.github.com/torchlight-api/torchlight-ibis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchlight-api%2Ftorchlight-ibis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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":[],"created_at":"2026-01-20T18:48:44.889Z","updated_at":"2026-01-20T18:48:44.943Z","avatar_url":"https://github.com/torchlight-api.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Torchlight Client for Ibis\n\n[![Latest Stable Version](https://poser.pugx.org/torchlight/torchlight-ibis/v)](//packagist.org/packages/torchlight/torchlight-ibis) [![Total Downloads](https://poser.pugx.org/torchlight/torchlight-ibis/downloads)](//packagist.org/packages/torchlight/torchlight-ibis) [![License](https://poser.pugx.org/torchlight/torchlight-ibis/license)](//packagist.org/packages/torchlight/torchlight-ibis)\n\n\nA [Torchlight](https://torchlight.dev) syntax highlighting extension for the ebook builder [Ibis](https://github.com/themsaid/ibis).\n\nTorchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.\n\n## Installation\n\nTo install, require the package from composer:\n\n```\ncomposer require torchlight/torchlight-ibis\n```\n\nIf you haven't already, Composer will ask you to create a `composer.json` file in the root of your book directory.  \n\nIn your `ibis.php` file, add the following to your configuration:\n\n```php\nreturn [\n    /**\n     * The book title.\n     */\n    'title' =\u003e 'Laravel Queues in Action',\n\n    // .....\n\n    'configure_commonmark' =\u003e function ($environment) {\n        \\Torchlight\\Ibis\\TorchlightExtension::make()-\u003eregister($environment);\n    },\n];\n```\n\nAt the top of your `ibis.php` file, you'll also need to add the composer autoloader if it's not already there:\n\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nreturn [\n    /**\n     * The book title.\n     */\n    'title' =\u003e 'Laravel Queues in Action',\n\n    // .....\n\n    'configure_commonmark' =\u003e function ($environment) {\n        \\Torchlight\\Ibis\\TorchlightExtension::make()-\u003eregister($environment);\n    },\n];\n```\n\nTo publish the Torchlight configuration file, you may run `./vendor/bin/torchlight`. It will place a `torchlight.php` file next to your `ibis.php` file.\n\nYou'll need to add a few styles to your stylesheet. These are slightly different from the default styles that Torchlight uses, because Ibis uses mPDF to convert the HTML to a PDF, and it has a few specific requirements.\n\nHere is a good starting set of styles, but feel free to tweak them to match your needs.\n\n```css\n/*\n Margin and rounding are personal preferences,\n overflow-x-auto is recommended.\n*/\npre {\n    page-break-inside: avoid;\n    border: solid 1px #eee;\n    margin-bottom: 30px;\n    border-radius: 5px;\n    overflow-x: auto;\n}\n\n/*\n Add some vertical padding and expand the width\n to fill its container. The horizontal padding\n comes at the line level so that background\n colors extend edge to edge.\n*/\npre div.torchlight {\n    padding-top: 16px;\n    padding-bottom: 16px;\n}\n\n/*\n Horizontal line padding to match the vertical\n padding from the code block above. Vertical \n for line height.\n*/\npre div.torchlight .line {\n    padding: 2px 16px;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchlight-api%2Ftorchlight-ibis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorchlight-api%2Ftorchlight-ibis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchlight-api%2Ftorchlight-ibis/lists"}