{"id":13617162,"url":"https://github.com/dflydev/dflydev-markdown","last_synced_at":"2025-04-05T00:07:50.554Z","repository":{"id":2145621,"uuid":"3090303","full_name":"dflydev/dflydev-markdown","owner":"dflydev","description":"PHP Markdown \u0026 Extra — DEPRECATED","archived":false,"fork":false,"pushed_at":"2014-01-06T23:32:07.000Z","size":256,"stargazers_count":170,"open_issues_count":3,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T23:06:20.621Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dflydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-02T21:56:01.000Z","updated_at":"2024-05-17T16:40:04.000Z","dependencies_parsed_at":"2022-08-21T06:10:25.061Z","dependency_job_id":null,"html_url":"https://github.com/dflydev/dflydev-markdown","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fdflydev-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fdflydev-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fdflydev-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fdflydev-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dflydev","download_url":"https://codeload.github.com/dflydev/dflydev-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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-08-01T20:01:37.614Z","updated_at":"2025-04-05T00:07:50.536Z","avatar_url":"https://github.com/dflydev.png","language":"PHP","funding_links":[],"categories":["PHP","标记","Markup"],"sub_categories":[],"readme":"PHP Markdown \u0026 Extra\n====================\n\nAn updated and stripped version of the original [PHP Markdown](http://michelf.com/projects/php-markdown/)\nby [Michel Fortin](http://michelf.com/). Works quite well with PSR-0\nautoloaders and is [Composer](http://packagist.org/) friendly.\n\nThis Project Has Been Deprecated\n================================\n\nThank you for your interest in contributing to this package. Unfortunately, **I\ndo not plan to continue maintaining this package.**\n\nThe original purpose of this package was to provide a way to get a PSR-0 and\nComposer friendly port of Michel Fortin's PHP Markdown library on Packagist.\nMichel was originally uninterested in Composer and did not want to make changes\nand said I was free to fork and maintain a special Composer package.\n\nIn January of 2013 (or around then) Michel finally joined the Composer\nbandwagon. More details can be found [here][1]. This means that the major reason\nthis port existed (to be a Composer friendly port) effectively went away. This\ncorresponded with the 1.3 release of PHP Markdown.\n\nAdditionally, other versions of PHP Markdown parsers have come into existence\nand are quite nice.\n\nPlease feel free to continue to use it as-is but if you are starting a new\nproject I would recommend finding another library. If you have a project already\ndepending on this package, I would recommend planning to migrate to something\nthat is better maintained.\n\nThanks for your support and using this library over the years.\n\n---\n\n\nChanges from the official PHP Markdown \u0026 Extra\n----------------------------------------------\n\nThe initial pass at updating PHP Markdown \u0026 Extra left the core of\nthe code more or less intact but the changes to the organization\nand naming were quite substantial. This effectively makes this package\na hard fork from Markdown 1.0.1n and MarkdownExtra 1.2.4.\n\nUpdated in the following ways:\n\n * Moved parser classes into their own files\n * Using PHP 5.3 namespaces\n * Following [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) standards\n * Replaced `@define` configuration variables with class `const` variables\n * Integrated with [Travis CI](http://travis-ci.org/)\n * Made [Composer](http://packagist.org/) friendly\n\nStripped in the following ways:\n\n * No more embedded plugin code (WordPress, bBlog, etc.)\n * No more top level function calls (`Markdown()`, etc.)\n\nLast synced with:\n\n * PHP Markdown v1.0.1o\n * PHP Markdown Extra v1.2.5\n\n\nRequirements\n------------\n\n * PHP 5.3+\n\nInstallation\n------------\n\nTo add this package as a local, per-project dependency to your project, simply add a\ndependency on `dflydev/markdown` to your project's `composer.json` file.\nHere is a minimal example of a `composer.json` file that just defines a dependency on\nversion 1.0 of this package:\n\n    {\n        \"require\": {\n            \"dflydev/markdown\": \"1.0.*\"\n        }\n    }\n\nUsage\n-----\n\nSimple usage for the standard Markdown ([details](http://michelf.com/projects/php-markdown/)) parser:\n\n    \u003c?php\n    use dflydev\\markdown\\MarkdownParser;\n\n    $markdownParser = new MarkdownParser();\n\n    // Will return \u003ch1\u003eHello World\u003c/h1\u003e\n    $markdownParser-\u003etransformMarkdown(\"#Hello World\");\n\nSimple usage for the Markdown Extra ([details](http://michelf.com/projects/php-markdown/extra/)) parser:\n\n    \u003c?php\n    use dflydev\\markdown\\MarkdownExtraParser;\n\n    $markdownParser = new MarkdownExtraParser();\n\n    // Will return \u003ch1\u003eHello World\u003c/h1\u003e\n    $markdownParser-\u003etransformMarkdown(\"#Hello World\");\n\n\nLicense\n-------\n\nThis library is licensed under the New BSD License - see the LICENSE file for details.\n\n\nCommunity\n---------\n\nIf you have questions or want to help out, join us in the\n[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.\n\n\nNot Invented Here\n-----------------\n\nThe original [PHP Markdown](http://michelf.com/projects/php-markdown/) was\nquite excellent but was not as easy to use as it could be in more modern PHP\napplications. Having started to use [Composer](http://packagist.org/) for a\nfew newer applications that needed to transform Markdown, I decided to strip\nand update the original PHP Markdown so that it could be more easily managed\nby the likes of Composer.\n\nAll of the initial work done for this library (which I can only assume\nwas quite substantial after having looked at the code) was done by\n[Michel Fortin](http://michelf.com/) during the original port from Perl to\nPHP.\n\nIf you do not need to install PHP Markdown by way of Composer or need to\nleverage PSR-0 autoloading, I suggest you continue to use the official and\nlikely more stable and well used original version of\n[PHP Markdown](http://michelf.com/projects/php-markdown/)\n\n[1]: https://github.com/michelf/php-markdown/issues/31\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflydev%2Fdflydev-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdflydev%2Fdflydev-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflydev%2Fdflydev-markdown/lists"}