{"id":25002070,"url":"https://github.com/xkevio/typst-anki","last_synced_at":"2025-04-12T11:06:34.525Z","repository":{"id":248776545,"uuid":"829566236","full_name":"xkevio/typst-anki","owner":"xkevio","description":"Typst Math within Anki flashcards.","archived":false,"fork":false,"pushed_at":"2025-02-04T16:28:19.000Z","size":36379,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T17:31:09.451Z","etag":null,"topics":["anki","mathjax","svg","typst"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xkevio.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}},"created_at":"2024-07-16T17:33:44.000Z","updated_at":"2025-02-04T16:28:23.000Z","dependencies_parsed_at":"2025-01-28T16:28:22.807Z","dependency_job_id":"4337a8e5-a30f-4867-81d5-af1f234213f3","html_url":"https://github.com/xkevio/typst-anki","commit_stats":null,"previous_names":["xkevio/typst-anki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkevio%2Ftypst-anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkevio%2Ftypst-anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkevio%2Ftypst-anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkevio%2Ftypst-anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xkevio","download_url":"https://codeload.github.com/xkevio/typst-anki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237197122,"owners_count":19270533,"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":["anki","mathjax","svg","typst"],"created_at":"2025-02-04T21:23:29.787Z","updated_at":"2025-02-04T21:23:31.720Z","avatar_url":"https://github.com/xkevio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typst-anki\n\nConvert `typst` math code to `MathJax` (via pandoc) or `SVG`s (via the typst compiler) for use in Anki flashcards. Click either the `Typst math inline` button or press \u003ckbd\u003eCtrl + M, T\u003c/kbd\u003e for the inline math editor (\u003ckbd\u003eCtrl+M, B\u003c/kbd\u003e for the math block editor). \n\nAlternatively, click `Typst math replace` or press \u003ckbd\u003eCtrl + M, R\u003c/kbd\u003e to replace all instances of typst math code between `$...$` with rendered equations. Add custom functions inside [`preamble.typ`](src/typst-anki/user_files/preamble.typ)—make sure to change your text color according to your system theme!\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"images/image-2.png\", width=30%\u003e\n    \u003cimg src=\"images/image-4.png\", width=30%\u003e\n    \u003cimg src=\"images/image-3.png\", width=30%\u003e\n\u003c/p\u003e\n\n\u003e [!IMPORTANT]  \n\u003e On MacOS, make sure `pandoc` is available under `/usr/local/bin/pandoc` otherwise Anki cannot find it.\n\n## Installation\n\n```sh\ngit clone git@github.com:xkevio/typst-anki.git\ncd typst-anki/src/typst-anki\n\nmkdir lib # \u003c- this stores external dependencies for Anki.\npip install typst -t ./lib/\npip install pypandoc -t ./lib/\n\nzip -r typst-anki.zip ./*\n```\n\nThen, open Anki \u003e Tools \u003e Addons \u003e Install from file \u003e `typst_anki.zip`.\n(Pandoc needs to be installed on your system and available via `$PATH`.) Or, if you wish, use [`just`](https://github.com/casey/just).\n\n## TODO\n\n- [ ] **Feature:** Use Typst HTML export when it releases (MathML).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxkevio%2Ftypst-anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxkevio%2Ftypst-anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxkevio%2Ftypst-anki/lists"}