{"id":17032519,"url":"https://github.com/breezewish/php-marked","last_synced_at":"2025-04-12T12:53:10.976Z","repository":{"id":62496851,"uuid":"21558989","full_name":"breezewish/php-marked","owner":"breezewish","description":"Yet another PHP markdown parser.","archived":false,"fork":false,"pushed_at":"2015-02-19T07:49:43.000Z","size":212,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T22:44:15.679Z","etag":null,"topics":["gfm","markdown","php","php-markdown-parser"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/breezewish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-07T06:20:49.000Z","updated_at":"2019-07-14T12:23:39.000Z","dependencies_parsed_at":"2022-11-02T11:32:47.923Z","dependency_job_id":null,"html_url":"https://github.com/breezewish/php-marked","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breezewish%2Fphp-marked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breezewish%2Fphp-marked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breezewish%2Fphp-marked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breezewish%2Fphp-marked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breezewish","download_url":"https://codeload.github.com/breezewish/php-marked/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571638,"owners_count":21126520,"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":["gfm","markdown","php","php-markdown-parser"],"created_at":"2024-10-14T08:28:52.860Z","updated_at":"2025-04-12T12:53:10.955Z","avatar_url":"https://github.com/breezewish.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"php-marked - Yet Another PHP Markdown Parser\n============================================\n\nA full-featured PHP markdown parser.\n\n- Ported from [chjj/marked][marked], consistent with previewing by JavaScript\n\n- Support [Github Flavoured Markdown][gfm]\n\n    - Multiple underscores in words\n\n    - URL autolinking\n\n    - Strikethrough\n\n    - Fenced code blocks\n\n    - Tables\n\n- High performance\n\n## Requirements\n\n- PHP 5.3+\n\n- Composer\n\n## Installation\n\n```bash\ncomposer require \"breeswish/php-marked\"\n\n```\n\n## Usage\n\nMinimal usage:\n\n```php\necho \\Breezewish\\Marked\\Marked::render('I am using __markdown__.');\n// =\u003e \u003cp\u003eI am using \u003cstrong\u003emarkdown\u003c/strong\u003e.\u003c/p\u003e\n```\n\nExample setting options with default values:\n\n```php\n\\Breezewish\\Marked\\Marked::setOptions(array(\n    'gfm'          =\u003e true,\n    'tables'       =\u003e true,\n    'breaks'       =\u003e false,\n    'pedantic'     =\u003e false,\n    'sanitize'     =\u003e false,\n    'smartLists'   =\u003e false,\n    'smartypants'  =\u003e false,\n    'langPrefix'   =\u003e 'lang-',\n    'xhtml'        =\u003e false,\n    'headerPrefix' =\u003e '',\n    'highlight'    =\u003e null,\n    'renderer'     =\u003e new \\Breezewish\\Marked\\Renderer()\n));\n\necho \\Breezewish\\Marked\\Marked::render('I am using __markdown__.');\n```\n\n## Marked::render(markdownString [,options])\n\n### markdownString\n\nType: `string`\n\nString of markdown source to be compiled.\n\n### options\n\nType: `array`\n\nHash of options. Can also be set using the `Marked::setOptions` method as seen above.\n\n## Basic Options\n\n### gfm\n\nType: `boolean`\nDefault: `true`\n\nEnable [GitHub flavored markdown][gfm].\n\n### tables\n\nType: `boolean`\nDefault: `true`\n\nEnable GFM [tables][tables].\nThis option requires the `gfm` option to be true.\n\n### breaks\n\nType: `boolean`\nDefault: `false`\n\nEnable GFM [line breaks][breaks].\nThis option requires the `gfm` option to be true.\n\n### pedantic\n\nType: `boolean`\nDefault: `false`\n\nConform to obscure parts of `markdown.pl` as much as possible. Don't fix any of\nthe original markdown bugs or poor behavior.\n\n### sanitize\n\nType: `boolean`\nDefault: `false`\n\nSanitize the output. Ignore any HTML that has been input.\n\n### smartLists\n\nType: `boolean`\nDefault: `true`\n\nUse smarter list behavior than the original markdown. May eventually be\ndefault with the old behavior moved into `pedantic`.\n\n### smartypants\n\nType: `boolean`\nDefault: `false`\n\nUse \"smart\" typograhic punctuation for things like quotes and dashes.\n\n### langPrefix\n\nType: `string`\nDefault: `\"lang-\"`\n\nThe prefix to be append in the className of `\u003ccode\u003e`.\n\n### xhtml\n\nType: `boolean`\nDefault: `false`\n\nRender XHTML.\n\n### headerPrefix\n\nType: `string`\nDefault: `\"\"`\n\nThe prefix to be append in the `id` attribute of headers.\n\n## Testing\n\nrun `phpunit`.\n\n## License\n\nThe MIT License.\n\n[marked]: https://github.com/chjj/marked\n[gfm]: https://help.github.com/articles/github-flavored-markdown\n[tables]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#wiki-tables\n[breaks]: https://help.github.com/articles/github-flavored-markdown#newlines","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreezewish%2Fphp-marked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbreezewish%2Fphp-marked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreezewish%2Fphp-marked/lists"}