{"id":22466898,"url":"https://github.com/mavimo/sculpin-parsedown","last_synced_at":"2025-03-27T15:20:29.040Z","repository":{"id":13149164,"uuid":"15831680","full_name":"mavimo/sculpin-parsedown","owner":"mavimo","description":"Sculpin parsedown","archived":false,"fork":false,"pushed_at":"2014-01-11T22:34:44.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T07:55:02.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mavimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-11T22:13:15.000Z","updated_at":"2019-07-11T10:49:18.000Z","dependencies_parsed_at":"2022-08-25T17:53:52.964Z","dependency_job_id":null,"html_url":"https://github.com/mavimo/sculpin-parsedown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fsculpin-parsedown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fsculpin-parsedown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fsculpin-parsedown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fsculpin-parsedown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavimo","download_url":"https://codeload.github.com/mavimo/sculpin-parsedown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245868327,"owners_count":20685609,"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-12-06T10:14:35.395Z","updated_at":"2025-03-27T15:20:29.019Z","avatar_url":"https://github.com/mavimo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sculpin parsedown\n\n[Sculpin](http://sculpin.io) is a PHP static site generator, that use markdown file to store content. By default it's parse that files using [php-markdown](https://github.com/michelf/php-markdown), that is a nice PHP markdown parser, but do not support [flavored markdown from github](http://github.github.com/github-flavored-markdown/) and have some performance issues.\n\nThis use the awesome [parsedown](http://parsedown.org) library that is faster that php-markdown and support flavored markdown syntax.\n\n# Performance\n\nI used my blog as test platform with:\n * approx 100 posts\n * archive (paginated posts)\n * tags\n * categories\n * some static pages\n\nSite is generated on a i7 CPU, an SSD disk and 16GB RAM.\n\n#### Using [markdown](https://github.com/michelf/php-markdown):\n~~~\nreal  0m8.954s\nuser  0m7.884s\nsys   0m0.235s\n~~~\n\n#### Using [parsedown](http://parsedown.org):\n~~~\nreal  0m6.115s\nuser  0m5.834s\nsys   0m0.267s\n~~~\n\nthe improvement is approx:\n~~~\nreal  32%\nuser  26%\nsys   12%\n~~~\n\naverage **29%** of improvement.\n\n# Installation\n\nTo install add in your ```sculpin.json``` file the following package declaration:\n\n~~~\n{\n    \"require\": {\n        \"mavimo/sculpin-parsedown\": \"@dev\"\n    }\n}\n~~~\n\nNow you can update using ```sculpin update``` command.\n\nAfter that add the following definition in the ```sculpin_kernel.yml```:\n\n~~~yaml\nsculpin_markdown:\n   parser_class: Mavimo\\Sculpin\\Bundle\\ParsedownBundle\\ParsedownConverter\n~~~\n\nSculpin have a declared dependencie in bundle, so we need to manually patch it, in file:\n\n~~~\nsrc/Sculpin/Bundle/MarkdownBundle/MarkdownConverter.php\n~~~\n\nremove from line 14:\n\n~~~php\nuse Michelf\\Markdown;\n~~~\n\nand transform line 48 from:\n\n~~~php\n    public function __construct(Markdown $markdown, array $extensions = array())\n~~~\n\nto\n\n~~~php\n    public function __construct(Markdown $markdown, array $extensions = array())\n~~~\nremoving ```Markdown``` variable definition.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fsculpin-parsedown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavimo%2Fsculpin-parsedown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fsculpin-parsedown/lists"}