{"id":13561443,"url":"https://github.com/elm-explorations/markdown","last_synced_at":"2026-02-21T10:31:41.837Z","repository":{"id":57675045,"uuid":"102322485","full_name":"elm-explorations/markdown","owner":"elm-explorations","description":"Markdown parser available for historical reasons. Will be replaced when we have an Elm implementation!","archived":false,"fork":false,"pushed_at":"2018-08-20T13:49:29.000Z","size":37,"stargazers_count":31,"open_issues_count":9,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-20T15:40:06.951Z","etag":null,"topics":["elm","markdown"],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elm-explorations.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":"2017-09-04T05:36:13.000Z","updated_at":"2025-06-29T16:51:58.000Z","dependencies_parsed_at":"2022-09-02T14:23:22.774Z","dependency_job_id":null,"html_url":"https://github.com/elm-explorations/markdown","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/elm-explorations/markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm-explorations%2Fmarkdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm-explorations%2Fmarkdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm-explorations%2Fmarkdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm-explorations%2Fmarkdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elm-explorations","download_url":"https://codeload.github.com/elm-explorations/markdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm-explorations%2Fmarkdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["elm","markdown"],"created_at":"2024-08-01T13:00:56.738Z","updated_at":"2026-02-21T10:31:41.820Z","avatar_url":"https://github.com/elm-explorations.png","language":"Elm","funding_links":[],"categories":["Elm"],"sub_categories":[],"readme":"# Markdown in Elm\n\nThis package is for markdown parsing and rendering. It is based on the [marked][] project\nwhich focuses on speed.\n\n[marked]: https://github.com/chjj/marked\n\n## Basic Usage\n\n```elm\ncontent : Html msg\ncontent =\n   Markdown.toHtml [class \"content\"] \"\"\"\n\n# Apple Pie Recipe\n\n  1. Invent the universe.\n  2. Bake an apple pie.\n\n\"\"\"\n```\n\n**Warning:** Calling `Markdown.toHtml` parses the whole block, so try not to\ncall it for no reason. In the `content` example above we only have to parse\nthe text once, but if we put it in a function we may be doing a lot of\nunnecessary parsing.\n\n\n## Code Blocks\n\nFor highlighting any code blocks, the package relies on the\n[highlight.js](https://highlightjs.org/) project. So if you want to\nsee highlighting of code blocks in the rendering result, you need to\nmake sure that your page/app binds a version of that library\n(supporting the languages you want to handle) to `window.hljs` in\nJavascript. [This is how package.elm-lang.org does\nthat.](https://github.com/elm/package.elm-lang.org/blob/e0b7aa4282038475612722ff7a57195866f8645b/backend/ServeFile.hs#L54)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felm-explorations%2Fmarkdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felm-explorations%2Fmarkdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felm-explorations%2Fmarkdown/lists"}