{"id":20433952,"url":"https://github.com/cable8mm/commonmark-unfenced","last_synced_at":"2026-04-21T04:02:34.535Z","repository":{"id":231863231,"uuid":"782901194","full_name":"cable8mm/commonmark-unfenced","owner":"cable8mm","description":"Unleash your fenced code from `laravel-labs/unfenced`","archived":false,"fork":false,"pushed_at":"2024-04-14T01:12:41.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T11:51:17.689Z","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/cable8mm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-06T11:14:54.000Z","updated_at":"2024-04-06T11:18:38.000Z","dependencies_parsed_at":"2024-04-14T02:29:50.620Z","dependency_job_id":null,"html_url":"https://github.com/cable8mm/commonmark-unfenced","commit_stats":null,"previous_names":["cable8mm/commonmark-unfenced"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cable8mm/commonmark-unfenced","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fcommonmark-unfenced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fcommonmark-unfenced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fcommonmark-unfenced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fcommonmark-unfenced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cable8mm","download_url":"https://codeload.github.com/cable8mm/commonmark-unfenced/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fcommonmark-unfenced/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32076295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"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":"2024-11-15T08:22:54.566Z","updated_at":"2026-04-21T04:02:34.508Z","avatar_url":"https://github.com/cable8mm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unfenced\n\nUnleash your fenced code.\n\nAn extension for [`league/commonmark`](https://github.com/thephpleague/commonmark/).\n\n## Installation\n\nAfter installing the package, you will need to register the extension.\n\n### Using `graham-campbell/markdown`\n\nIn your `config/markdown.php` file, add the extension somewhere after the `CommonMarkCoreExtension`:\n\n```diff\n  return [\n      // ...\n      'extensions' =\u003e [\n          League\\CommonMark\\Extension\\CommonMark\\CommonMarkCoreExtension::class,\n          League\\CommonMark\\Extension\\GithubFlavoredMarkdownExtension::class,\n+         Laravel\\Unfenced\\UnfencedExtension::class,\n      ],\n  ];\n```\n\n### Manually\n\n```php\nuse Laravel\\Unfenced\\UnfencedExtension;\nuse League\\CommonMark\\Environment\\Environment;\nuse League\\CommonMark\\Extension\\CommonMark\\CommonMarkCoreExtension;\nuse League\\CommonMark\\MarkdownConverter;\n\n$environment = new Environment();\n$environment-\u003eaddExtension(new CommonMarkCoreExtension());\n$environment-\u003eaddExtension(new UnfencedExtension());\n\n$converter = new MarkdownConverter($environment);\necho $converter-\u003econvert('...');\n```\n\n## Usage\n\nFeatures are enabled via the \"info\" string of the code fence.\n\n\u003e [!NOTE]\n\u003e This extension does not include any CSS.\n\n### Adding file names\n\nTo display a file name above your code, add the `filename` attribute:\n\n````markdown\n```php filename=src/Hello.php\n// ...\n```\n````\n\n![image](https://cabinet.palgle.com/commonmark-unfenced/unfenced_filename.png)\n\n### Adding tabs\n\nAdjacent code fences can be grouped into a tabbed view by specifying the `tab` attribute:\n\n````markdown\n```vue tab=Vue\n// ...\n```\n\n```javascript tab=React\n// ...\n```\n````\n\n![image](https://cabinet.palgle.com/commonmark-unfenced/unfenced_tab.png)\n\nYou may also include the `filename` attribute, which is especially helpful when providing code samples where the file name differs depending on the language:\n\n````markdown\n```vue tab=Vue filename=Welcome.vue\n// ...\n```\n\n```javascript tab=React filename=Welcome.jsx\n// ...\n```\n````\n\n![image](https://cabinet.palgle.com/commonmark-unfenced/unfenced_filename_tab.png)\n\nThe extension will inject JavaScript into your page when tabs are used. The JavaScript enables the following features:\n\n* It will apply an `active` class to the active tab button and tab content. You may use CSS to highlight the active tab, and hide the inactive tab content.\n* If multiple tabbed sections are found, and they contain identical tab names, they will be synchronized. I.e, clicking the \"React\" tab in one section, will switch to that tab in all sections.\n* The active tab is saved to the browsers local storage so that it persists between pages and visits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fcommonmark-unfenced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcable8mm%2Fcommonmark-unfenced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fcommonmark-unfenced/lists"}