{"id":13508574,"url":"https://github.com/filterkaapi/pandex","last_synced_at":"2026-02-22T19:02:05.348Z","repository":{"id":57530660,"uuid":"42293450","full_name":"FilterKaapi/pandex","owner":"FilterKaapi","description":"Lightweight Elixir wrapper for Pandoc. Convert Markdown, CommonMark, HTML, Latex... to HTML, HTML5, opendocument, rtf, texttile, asciidoc, markdown, json and others","archived":false,"fork":false,"pushed_at":"2019-05-30T19:33:46.000Z","size":583,"stargazers_count":65,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-16T16:44:27.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/FilterKaapi.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":"2015-09-11T07:10:12.000Z","updated_at":"2025-10-10T18:38:09.000Z","dependencies_parsed_at":"2022-09-14T00:11:35.178Z","dependency_job_id":null,"html_url":"https://github.com/FilterKaapi/pandex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/FilterKaapi/pandex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilterKaapi%2Fpandex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilterKaapi%2Fpandex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilterKaapi%2Fpandex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilterKaapi%2Fpandex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FilterKaapi","download_url":"https://codeload.github.com/FilterKaapi/pandex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilterKaapi%2Fpandex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29723573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: 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":[],"created_at":"2024-08-01T02:00:55.005Z","updated_at":"2026-02-22T19:02:05.330Z","avatar_url":"https://github.com/FilterKaapi.png","language":"Elixir","funding_links":[],"categories":["Markdown"],"sub_categories":[],"readme":"# Pandex\n\nPandex is a lightweight Elixir wrapper for [Pandoc](http://pandoc.org). It has no dependencies other than Pandoc itself. Pandex unit tests are currently run again Pandoc version 2.5.\n\nPandex enables you to perform any combination of the conversions below:\n\n| Convert From (any) | Convert To (any)   |\n|:-------------------|:-------------------|\n| commonmark         | asciidoc           |\n| gfm                | beamer             |\n| html               | commonmark         |\n| json               | context            |\n| latex              | docbook            |\n| markdown           | dzslides           |\n| markdown_github *  | gfm                |\n| markdown_mmd       | html               |\n| markdown_phpextra  | html5              |\n| markdown_strict    | json               |\n| rst                | latex              |\n| textile            | man                |\n|                    | markdown           |\n|                    | markdown_github *  |\n|                    | markdown_mmd       |\n|                    | markdown_phpextra  |\n|                    | markdown_strict    |\n|                    | mediawiki          |\n|                    | opendocument       |\n|                    | org                |\n|                    | plain              |\n|                    | rst                |\n|                    | rtf                |\n|                    | s5                 |\n|                    | slidy              |\n|                    | texinfo            |\n|                    | textile            |\n\n`*` Deprecated: `markdown_github`. Use `gfm` instead.\n\n# Installation\n\n1. Pandex requires Pandoc to work. [Install Pandoc](http://pandoc.org/installing.html) for your operating system.\n\n2. Add Pandex to `mix.exs` as follows:\n\n```elixir\ndefmodule YourApp.Mixfile do\n  defp deps do\n    [\n      {:pandex, \"~\u003e 0.2.0\"}\n    ]\n  end\nend\n```\n\n3. Run `mix deps.get` to install `Pandex`.\n\n# Usage\n\nPandex follows the syntax of `\u003cformat-from\u003e_to_\u003cformat-to\u003e(\u003cstring\u003e)`.\n\n## Examples\n\n```elixir\niex\u003e Pandex.gfm_to_html(\"# Title \\n\\n## List\\n\\n- one\\n- two\\n- three\\n\")\n{:ok, \"\u003ch1 id=\\\"title\\\"\u003eTitle\u003c/h1\u003e\\n\u003ch2 id=\\\"list\\\"\u003eList\u003c/h2\u003e\\n\u003cul\u003e\\n\u003cli\u003eone\u003c/li\u003e\\n\u003cli\u003etwo\u003c/li\u003e\\n\u003cli\u003ethree\u003c/li\u003e\\n\u003c/ul\u003e\\n\"}\n\niex\u003e Pandex.latex_to_html5(\"\\\\section{Title}\\n\\n\\\\subsection{List}\\n\\n\\\\begin{itemize}\\n\\\\tightlist\\n\\\\item\\n  one\\n\\\\item\\n  two\\n\\\\item\\n  three\\n\\\\end{itemize}\\n\")\n{:ok, \"\u003ch1 id=\\\"title\\\"\u003eTitle\u003c/h1\u003e\\n\u003ch2 id=\\\"list\\\"\u003eList\u003c/h2\u003e\\n\u003cul\u003e\\n\u003cli\u003e\u003cp\u003eone\u003c/p\u003e\u003c/li\u003e\\n\u003cli\u003e\u003cp\u003etwo\u003c/p\u003e\u003c/li\u003e\\n\u003cli\u003e\u003cp\u003ethree\u003c/p\u003e\u003c/li\u003e\\n\u003c/ul\u003e\\n\"}\n\niex\u003e Pandex.latex_to_json(\"\\\\section{Title}\\\\label{title}\\n\\n\\\\subsection{List}\\\\label{list}\\n\\n\\\\begin{itemize}\\n\\\\item\\n  one\\n\\\\item\\n  two\\n\\\\item\\n  three\\n\\\\end{itemize}\\n\")\n{:ok, \"{\\\"blocks\\\":[{\\\"t\\\":\\\"Header\\\",\\\"c\\\":[1,[\\\"title\\\",[],[]],[{\\\"t\\\":\\\"Str\\\",\\\"c\\\":\\\"Title\\\"}]]},{\\\"t\\\":\\\"Header\\\",\\\"c\\\":[2,[\\\"list\\\",[],[]],[{\\\"t\\\":\\\"Str\\\",\\\"c\\\":\\\"List\\\"}]]},{\\\"t\\\":\\\"BulletList\\\",\\\"c\\\":[[{\\\"t\\\":\\\"Para\\\",\\\"c\\\":[{\\\"t\\\":\\\"Str\\\",\\\"c\\\":\\\"one\\\"}]}],[{\\\"t\\\":\\\"Para\\\",\\\"c\\\":[{\\\"t\\\":\\\"Str\\\",\\\"c\\\":\\\"two\\\"}]}],[{\\\"t\\\":\\\"Para\\\",\\\"c\\\":[{\\\"t\\\":\\\"Str\\\",\\\"c\\\":\\\"three\\\"}]}]]}],\\\"pandoc-api-version\\\":[1,17,5,4],\\\"meta\\\":{}}\\n\"}\n```\n\n## Using with your app\n\n```elixir\ndefmodule YourApp do\n  import Pandex\n\n  def convert(string)  do\n    {:ok, output} = markdown_to_html(string)\n    IO.puts(output)\n  end\nend\n```\n\nYou can also give a file as an input. The output will however be a string.\n\n```elixir\ndefmodule YourApp do\n  import Pandex\n\n  def convert(file)  do\n    {:ok, output} = markdown_file_to_html(file)\n    IO.puts(output)\n  end\nend\n```\n\n# License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilterkaapi%2Fpandex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilterkaapi%2Fpandex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilterkaapi%2Fpandex/lists"}