{"id":13910438,"url":"https://github.com/jonlabelle/ci-markdown","last_synced_at":"2025-06-26T01:04:20.792Z","repository":{"id":5056473,"uuid":"6218048","full_name":"jonlabelle/ci-markdown","owner":"jonlabelle","description":"CI Markdown is a CodeIgniter library for parsing Markdown to HTML.","archived":false,"fork":false,"pushed_at":"2024-05-23T14:18:47.000Z","size":167,"stargazers_count":98,"open_issues_count":0,"forks_count":38,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-08T06:42:20.016Z","etag":null,"topics":["ci-markdown","codeigniter","library","markdown","markdown-parser","php","php-markdown"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Vizzuality/DeforestationAnalysisTool","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonlabelle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-14T20:59:05.000Z","updated_at":"2024-05-23T07:45:58.000Z","dependencies_parsed_at":"2024-02-04T08:53:57.336Z","dependency_job_id":"efe5fe6a-097b-4054-b220-6ac21f9f8509","html_url":"https://github.com/jonlabelle/ci-markdown","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":"0.44705882352941173","last_synced_commit":"51ec8c0037494442262a713eb571e3b1181f3955"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jonlabelle/ci-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fci-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fci-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fci-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fci-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonlabelle","download_url":"https://codeload.github.com/jonlabelle/ci-markdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fci-markdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978910,"owners_count":23239417,"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":["ci-markdown","codeigniter","library","markdown","markdown-parser","php","php-markdown"],"created_at":"2024-08-07T00:01:23.899Z","updated_at":"2025-06-26T01:04:20.748Z","avatar_url":"https://github.com/jonlabelle.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# CI Markdown\n\nCI Markdown is a modified rendition of Michel Fortin's [PHP Markdown][1]\nand [PHP Markdown Extra][2] for [CodeIgniter][3].\n\n## Install\n\n### Requirements\n\n- [PHP][4] version 5.4.8 or newer\n- [CodeIgniter][3] version 2.x – v3.x\n\n### Download\n\nDownload and extract the [zip][5] release to your CoddeIgniter\n`application/libraries/` directory.\n\n**The extracted path should resemble:**\n\n- `application/libraries/Markdown.php`\n\n## Usage\n\n### Configuration\n\nCustom [PHP Markdown settings](https://michelf.ca/projects/php-markdown/configuration/)\nare defined in the [config/markdown.php](config/markdown.php) config file.\n\n### Initializing the Markdown Class\n\nLike most other classes in CodeIgniter, initialize it from your controller\nusing the `$this-\u003eload-\u003elibrary()` method:\n\n```php\n$this-\u003eload-\u003elibrary('markdown');\n```\n\nTo programmatically configure the Markdown instance, overriding any matched\nsettings defined in the [config file](config/markdown.php):\n\n```php\n$config = array(\n    'tab_width' =\u003e 2,\n    'no_markup' =\u003e true,\n    'empty_element_suffix' =\u003e '/\u003e'\n);\n\n$this-\u003eload-\u003elibrary('markdown', $config);\n```\n\n#### Markdown to HTML\n\n- `$this-\u003emarkdown-\u003etransform()`\n\nAccepts a single `string` parameter of Markdown *text* and returns the\ntransformed HTML.\n\n```php\n$this-\u003eload-\u003elibrary('markdown');\n\n$markdownText = \"# Heading \".\"\\n\".\"## Sub-heading\";\necho $this-\u003emarkdown-\u003etransform($markdownText);\n// \u003ch1\u003eHeading\u003c/h1\u003e\n// \u003ch2\u003eSub-heading\u003c/h2\u003e\n```\n\n#### Markdown file to HTML\n\n- `$this-\u003emarkdown-\u003etransform_file()`\n\nAccepts a single `string` parameter for a Markdown *file path* and returns the\ntransformed HTML.\n\n```php\n$this-\u003eload-\u003elibrary('markdown');\n\necho $this-\u003emarkdown-\u003etransform_file('/path/to/markdown/file.md');\n// \u003ch1\u003eHeading\u003c/h1\u003e\n// \u003ch2\u003eSub-heading\u003c/h2\u003e\n```\n\n## Issues\n\nFor all issues including feature requests, please [open a new issue][6].\n\n## Changes\n\nSee the [Changelog][7] page.\n\n## Credits\n\n- [John Gruber](http://daringfireball.net/)\n- [Michel Fortin](https://michelf.ca/home/)\n\n[1]: https://michelf.ca/projects/php-markdown/\n[2]: https://michelf.ca/projects/php-markdown/extra/\n[3]: https://www.codeigniter.com\n[4]: https://php.net\n[5]: https://github.com/jonlabelle/ci-markdown/archive/master.zip\n[6]: https://github.com/jonlabelle/ci-markdown/issues/new\n[7]: https://github.com/jonlabelle/ci-markdown/blob/master/CHANGELOG.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fci-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonlabelle%2Fci-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fci-markdown/lists"}