{"id":32166465,"url":"https://github.com/paradox460/djot","last_synced_at":"2026-02-19T07:02:46.690Z","repository":{"id":206345757,"uuid":"716361942","full_name":"paradox460/djot","owner":"paradox460","description":"A fast Djot parser for Elixir","archived":false,"fork":false,"pushed_at":"2025-07-24T05:30:01.000Z","size":61,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T15:07:45.732Z","etag":null,"topics":["djot","elixir","markup"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/paradox460.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-09T01:17:01.000Z","updated_at":"2025-07-24T05:30:04.000Z","dependencies_parsed_at":"2023-11-12T02:29:22.200Z","dependency_job_id":"ece80a70-e545-4bdd-982e-070b06ead3ce","html_url":"https://github.com/paradox460/djot","commit_stats":null,"previous_names":["paradox460/djot"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/paradox460/djot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradox460%2Fdjot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradox460%2Fdjot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradox460%2Fdjot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradox460%2Fdjot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradox460","download_url":"https://codeload.github.com/paradox460/djot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradox460%2Fdjot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"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":["djot","elixir","markup"],"created_at":"2025-10-21T15:06:21.896Z","updated_at":"2026-02-19T07:02:46.681Z","avatar_url":"https://github.com/paradox460.png","language":"Elixir","funding_links":[],"categories":["Parsers \u0026 Libraries"],"sub_categories":["Elixir"],"readme":"# Djot\n\n\u003cdiv align=center\u003e\n\n[![Hex.pm](https://img.shields.io/hexpm/v/djot?style=for-the-badge\u0026color=%23714a94)](https://hex.pm/packages/djot)\n\n\u003c/div\u003e\n\nA fast [Djot](https://djot.net) parser and formatter for Elixir.\n\nDjot parsing and transformations powered by the [jotdown](https://crates.io/crates/jotdown) rust crate.\n\n## Usage\n\nSimply call `to_html` on a string that contains Djot data, and you'll get back a html fragment.\n\n```elixir\nDjot.to_html(\"hello *world*!\")\n# =\u003e {:ok, \"\u003cp\u003ehello \u003cstrong\u003eworld\u003c/strong\u003e!\u003c/p\u003e\\n\"}\n```\n\n### Sigil\n\nIf you want to write Djot contents inline in an Elixir program, you can use the provided sigil\n\n```elixir\nimport Djot.Sigil\n\n~d\"\"\"\nThis is a Djot document. \\\nIt will be compiled to HTML automatically, at compile time!\n\nHere's some display math, thank you djot!\n\n$$`\n\\frac{-b \\pm \\sqrt{b^2 - 4 a c}}{2 a}\n`\n\"\"\"\n# =\u003e \"\u003cp\u003eThis is a Djot document. \u003cbr\u003e\\nIt will be compiled to HTML automatically, at compile time!\u003c/p\u003e\\n\u003cp\u003e\u003cspan class=\\\"math display\\\"\u003e\\\\[\\n\\\\frac{-b \\\\pm \\\\sqrt{b^2 - 4 a c}}{2 a}\\n\\\\]\u003c/span\u003e\u003c/p\u003e\\n\"\n```\n\nThis can be useful when paired with tools such as the [Tableau SSG](https://github.com/elixir-tools/tableau)\n\n### Options\n\nThe Djot renderer accepts a few options:\n\n| Option                 | Values                               | Description                                                              |\n| ---------------------- | ------------------------------------ | ------------------------------------------------------------------------ |\n| `renderer`             | `:default`, `:minified`, `:indented` | Which particular output renderer to use                                  |\n| `indent_string`        | String                               | String which is used to indent lines when using the `:indented` renderer |\n| `indent_initial_level` | Integer                              | How deep the initial indent starts at                                    |\n\nThese are passed to the `Djot.to_html` calls as follows:\n\n```elixir\nDjot.to_html(document, renderer: :indented, indent_string: \"    \", initial_indent_level: 1)\n```\n\nIf you are using the bang variant of `to_html/2`, substitute it where appropriate\n\n## Installation\n\nAdd `:djot` as a dependency:\n\n```elixir\ndef deps do\n[\n  {:djot, \"~\u003e 0.1.0\"}\n]\n```\n\n## See Also\n\nIf you want something that runs on _pure BEAM_ code, checkout [jot](https://hex.pm/packages/jot), written in Gleam.\n\nThis package is inspired by the excellent [mdex](https://hex.pm/packages/mdex) package.\n\nThere is no syntax highlighting out of the box with this package. If you want server-side highlighting, I recommend [autumn](https://hex.pm/packages/autumn).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadox460%2Fdjot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadox460%2Fdjot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadox460%2Fdjot/lists"}