[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8129":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},8129,"parsedown","erusev\u002Fparsedown","erusev","Better Markdown Parser in PHP","https:\u002F\u002Fparsedown.org",null,"PHP",15042,1141,213,123,0,1,4,18,44.17,"MIT License",false,"master",true,[26,27,28,29],"markdown","markdown-parser","parser","php","2026-06-12 02:01:49","# Parsedown\n\n[![Total Downloads](https:\u002F\u002Fposer.pugx.org\u002Ferusev\u002Fparsedown\u002Fd\u002Ftotal.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ferusev\u002Fparsedown)\n[![Version](https:\u002F\u002Fposer.pugx.org\u002Ferusev\u002Fparsedown\u002Fv\u002Fstable.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ferusev\u002Fparsedown)\n[![License](https:\u002F\u002Fposer.pugx.org\u002Ferusev\u002Fparsedown\u002Flicense.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ferusev\u002Fparsedown)\n\nBetter Markdown Parser in PHP — \u003Ca href=\"https:\u002F\u002Fparsedown.org\u002Fdemo\">demo\u003C\u002Fa>\n\n## Features\n\n- One file\n- No dependencies\n- [Super fast](http:\u002F\u002Fparsedown.org\u002Fspeed)\n- Extensible\n- [GitHub flavored](https:\u002F\u002Fgithub.github.com\u002Fgfm)\n- [Tested](http:\u002F\u002Fparsedown.org\u002Ftests\u002F) in PHP 7.1+\n- [Markdown Extra extension](https:\u002F\u002Fgithub.com\u002Ferusev\u002Fparsedown-extra)\n\n## Installation\n\nInstall the [composer package]:\n\n```sh\ncomposer require erusev\u002Fparsedown\n```\n\nOr download the [latest release] and include `Parsedown.php`\n\n[composer package]: https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ferusev\u002Fparsedown \"The Parsedown package on packagist.org\"\n[latest release]: https:\u002F\u002Fgithub.com\u002Ferusev\u002Fparsedown\u002Freleases\u002Flatest \"The latest release of Parsedown\"\n\n## Example\n\n```php\n$Parsedown = new Parsedown();\n\necho $Parsedown->text('Hello _Parsedown_!'); # prints: \u003Cp>Hello \u003Cem>Parsedown\u003C\u002Fem>!\u003C\u002Fp>\n```\n\nYou can also parse inline markdown only:\n\n```php\necho $Parsedown->line('Hello _Parsedown_!'); # prints: Hello \u003Cem>Parsedown\u003C\u002Fem>!\n```\n\nMore examples in [the wiki](https:\u002F\u002Fgithub.com\u002Ferusev\u002Fparsedown\u002Fwiki\u002F) and in [this video tutorial](http:\u002F\u002Fyoutu.be\u002FwYZBY8DEikI).\n\n## Security\n\nParsedown is capable of escaping user-input within the HTML that it generates. Additionally Parsedown will apply sanitisation to additional scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself.\n\nTo tell Parsedown that it is processing untrusted user-input, use the following:\n\n```php\n$Parsedown->setSafeMode(true);\n```\n\nIf instead, you wish to allow HTML within untrusted user-input, but still want output to be free from XSS it is recommended that you make use of a HTML sanitiser that allows HTML tags to be whitelisted, like [HTML Purifier](http:\u002F\u002Fhtmlpurifier.org\u002F).\n\nIn both cases you should strongly consider employing defence-in-depth measures, like [deploying a Content-Security-Policy](https:\u002F\u002Fscotthelme.co.uk\u002Fcontent-security-policy-an-introduction\u002F) (a browser security feature) so that your page is likely to be safe even if an attacker finds a vulnerability in one of the first lines of defence above.\n\nSafe mode does not necessarily yield safe results when using extensions to Parsedown. Extensions should be evaluated on their own to determine their specific safety against XSS.\n\n## Escaping HTML\n\n> WARNING: This method is not safe from XSS!\n\nIf you wish to escape HTML in trusted input, you can use the following:\n\n```php\n$Parsedown->setMarkupEscaped(true);\n```\n\nBeware that this still allows users to insert unsafe scripting vectors, ex: `[xss](javascript:alert%281%29)`.\n\n## Questions\n\n**How does Parsedown work?**\n\nIt tries to read Markdown like a human. First, it looks at the lines. It’s interested in how the lines start. This helps it recognise blocks. It knows, for example, that if a line starts with a `-` then perhaps it belongs to a list. Once it recognises the blocks, it continues to the content. As it reads, it watches out for special characters. This helps it recognise inline elements (or inlines).\n\nWe call this approach \"line based\". We believe that Parsedown is the first Markdown parser to use it. Since the release of Parsedown, other developers have used the same approach to develop other Markdown parsers in PHP and in other languages.\n\n**Is it compliant with CommonMark?**\n\nIt passes most of the CommonMark tests. Most of the tests that don't pass deal with cases that are quite uncommon. Still, as CommonMark matures, compliance should improve.\n\n**Who uses it?**\n\n[Laravel Framework](https:\u002F\u002Flaravel.com\u002F), [Bolt CMS](http:\u002F\u002Fbolt.cm\u002F), [Grav CMS](http:\u002F\u002Fgetgrav.org\u002F), [Herbie CMS](http:\u002F\u002Fwww.getherbie.org\u002F), [Kirby CMS](http:\u002F\u002Fgetkirby.com\u002F), [October CMS](http:\u002F\u002Foctobercms.com\u002F), [Pico CMS](http:\u002F\u002Fpicocms.org), [Statamic CMS](http:\u002F\u002Fwww.statamic.com\u002F), [phpDocumentor](http:\u002F\u002Fwww.phpdoc.org\u002F), [RaspberryPi.org](http:\u002F\u002Fwww.raspberrypi.org\u002F), [Symfony Demo](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fdemo) and [more](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ferusev\u002Fparsedown\u002Fdependents).\n\n**How can I help?**\n\nUse it, star it, share it and if you feel generous, [sponsor me](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Ferusev).\n\n**What else should I know?**\n\nI also make [Nota](https:\u002F\u002Fnota.md\u002F) — a notes app designed for local Markdown files.\n","Parsedown 是一个用 PHP 编写的高性能 Markdown 解析器。它具有单文件、无依赖、扩展性强的特点，并且支持 GitHub 风味的 Markdown 语法。Parsedown 在解析速度上表现出色，适用于 PHP 7.1 及以上版本的应用环境。此外，它还提供了安全模式来处理不可信的用户输入，以防止 XSS 攻击。此项目非常适合需要将 Markdown 文档转换为 HTML 的场景，如博客系统、文档生成工具或任何需要快速可靠地处理 Markdown 内容的 PHP 应用程序。",2,"2026-06-11 03:16:18","top_language"]