{"id":22702980,"url":"https://github.com/liesnikov/literate-agda-markdown","last_synced_at":"2025-03-29T19:40:45.076Z","repository":{"id":238989009,"uuid":"797755839","full_name":"liesnikov/literate-agda-markdown","owner":"liesnikov","description":"a tiny pandoc filter to transform agda code blocks into literate agda code blocks","archived":false,"fork":false,"pushed_at":"2024-05-09T09:34:39.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T20:25:56.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","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/liesnikov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-05-08T13:03:56.000Z","updated_at":"2024-05-09T09:34:43.000Z","dependencies_parsed_at":"2024-05-09T10:47:28.309Z","dependency_job_id":null,"html_url":"https://github.com/liesnikov/literate-agda-markdown","commit_stats":null,"previous_names":["liesnikov/literate-agda-markdown"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liesnikov%2Fliterate-agda-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liesnikov%2Fliterate-agda-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liesnikov%2Fliterate-agda-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liesnikov%2Fliterate-agda-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liesnikov","download_url":"https://codeload.github.com/liesnikov/literate-agda-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237413,"owners_count":20745346,"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-10T07:16:30.612Z","updated_at":"2025-03-29T19:40:45.058Z","avatar_url":"https://github.com/liesnikov.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Literate Agda Markdown filter\n\nA very simple [pandoc filter](https://pandoc.org/filters.html) to tranlate literate Agda markdown files to literate Agda TeX files.\n\nThis enables the pipeline: literate markdown -\u003e literate tex -\u003e pdf with highighting.\nWhich might be possible to do somehow with pure Agda but I couldn't find it immediately.\n\n## Syntax example\n\nEverything but `agda` codeblocks is left as is.\n\n```agda {.hide}\nmodule README where\n```\n\ngets translated to\n\n```latex\n\\begin{code}[hide]\n...\n\\end{code}\n```\n\nwhich will be typechecked by agda, but not visible in the final pdf.\n\n\n```agda\ndata Nat : Set where\n    zero : Nat\n    suc  : Nat → Nat\n```\n\nwill be tranlated to\n\n```latex\n\\begin{code}\n...\n\\end{code}\n```\n\nwhich will be visible.\n\n## Usage example\n\n1. `pandoc --from markdown --to latex -s input.lagda.md -o input.lagda.tex`\n2. `agda --latex input.lagda.tex`\n3. `pdflatex input.tex`\n\n\n## TODOs and notes\n\n* `{.hide}` attributes break agda-mode and code blocks which aren't annotated get checked by agda too\n* adding an lhs filter would be good too\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliesnikov%2Fliterate-agda-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliesnikov%2Fliterate-agda-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliesnikov%2Fliterate-agda-markdown/lists"}