{"id":29795680,"url":"https://github.com/alexthillen/better-markdown-anki","last_synced_at":"2026-03-14T15:55:08.008Z","repository":{"id":302407444,"uuid":"1007801665","full_name":"alexthillen/better-markdown-anki","owner":"alexthillen","description":"Creates a new Basic and a new Cloze Note Type that support Markdown and KaTeX","archived":false,"fork":false,"pushed_at":"2025-11-30T11:00:01.000Z","size":18768,"stargazers_count":15,"open_issues_count":5,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-02T15:42:46.116Z","etag":null,"topics":["addon","anki","code","flashcards","katex","latex","markdown","programming","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://ankiweb.net/shared/info/2100166052","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexthillen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-24T14:49:28.000Z","updated_at":"2025-11-30T10:59:41.000Z","dependencies_parsed_at":"2025-07-02T08:48:44.298Z","dependency_job_id":null,"html_url":"https://github.com/alexthillen/better-markdown-anki","commit_stats":null,"previous_names":["alexthillen/better-markdown-anki"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/alexthillen/better-markdown-anki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexthillen%2Fbetter-markdown-anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexthillen%2Fbetter-markdown-anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexthillen%2Fbetter-markdown-anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexthillen%2Fbetter-markdown-anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexthillen","download_url":"https://codeload.github.com/alexthillen/better-markdown-anki/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexthillen%2Fbetter-markdown-anki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29166229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","response_time":59,"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":["addon","anki","code","flashcards","katex","latex","markdown","programming","syntax-highlighting"],"created_at":"2025-07-28T05:00:49.893Z","updated_at":"2026-02-06T15:13:33.919Z","avatar_url":"https://github.com/alexthillen.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Better Markdown Anki\n\nA powerful React-based Anki add-on that transforms your flashcards with advanced markdown rendering, interactive features, and modern web technologies for an enhanced study experience.\n\n## Preview\n\n![Better Markdown Anki Review](https://raw.githubusercontent.com/alexthillen/better-markdown-anki/refs/heads/main/.github/assets/better-markdown-anki-example.gif)\n\n![Better Markdown Anki Preview](https://raw.githubusercontent.com/alexthillen/better-markdown-anki/refs/heads/main/.github/assets/better-markdown-anki-preview.png)\n\n## Features\n\n### 🎨 Enhanced Visual Experience\n- **Theme-aware design** that automatically adapts to Anki's light/dark mode\n- **Color-coded card sections** with distinct styling for front, back, and extra content\n- **Modern UI components** built with React and Mantine UI library\n\n### 📝 Advanced Markdown Support\n- **Full markdown rendering** with proper formatting for headers, lists, tables, and more\n- **LaTeX math support** using KaTeX for both inline (`$...$`) and block (`$$...$$`) equations\n- **Syntax highlighting** for code blocks with language-specific coloring\n- **HTML entity decoding** for proper character display\n\n### 🔄 Interactive Cloze Deletions\n- **Toggle switches** for each cloze deletion to show/hide content dynamically\n- **Smart cloze processing** that preserves formatting within code blocks and math expressions\n- **Visual indicators** for active/inactive cloze states\n\n### 🏷️ Smart Card Organization\n- **Tag display** with styled badges for easy categorization\n- **Difficulty indicators** to show card complexity at a glance\n\n## Installation\n\n1. Download the add-on from the Anki add-on repository or by downloading the `.apkg`.\n2. In Anki, go to **Tools** → **Add-ons** → **Install from file...**\n3. Select the downloaded file and restart Anki\n4. The add-on will automatically create the necessary note types on first launch\n\n## Note Types\n\nThe add-on creates two specialized note types:\n\n### Better Markdown : Basic\n- **Fields**: Front, Back, Extra, Difficulty\n- **Use case**: Traditional question-answer flashcards with markdown formatting\n\n### Better Markdown : Cloze\n- **Fields**: Text, Back Extra, Difficulty  \n- **Use case**: Interactive cloze deletion cards with enhanced markdown support\n\n## Usage\n\n1. Create a new note using one of the \"Better Markdown\" note types\n2. Write your content using standard markdown syntax\n3. The add-on will automatically render your markdown with enhanced styling\n4. Math expressions can be written using LaTeX syntax\n5. Use toggle switches to interact with cloze deletions dynamically\n\n## Technical Architecture\n\n### Core Technologies\n- **React 19** with modern hooks and functional components\n- **Mantine UI** for consistent, accessible component design\n- **Vite** for fast development and optimized builds\n- **TypeScript** support for type safety\n\n### Markdown Processing Pipeline\n- **`ReactMarkdown`** for base markdown parsing\n- **`remark-math`** + **`rehype-katex`** for mathematical expressions\n- **`react-syntax-highlighter`** for code block formatting\n\n### Key Features\n- **DOM mutation observation** for real-time card updates\n- **Automatic theme detection** from Anki's CSS classes\n- **Python backend integration** with Anki's API\n- **Automatic template and field management** with version control\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Start development server\nnpm run dev\n\n# Build for production\nnpm run build\n```\n\n## Configuration\n\nThe add-on includes automatic configuration management:\n- Templates are updated automatically when the add-on loads\n- Missing fields are added to existing note types\n- Theme mode detection from Anki's CSS classes\n- Content changes monitored through DOM mutation observation\n\n## Browser Compatibility\n\nOptimized for modern browsers with support for ES2020+ features, CSS custom properties, and DOM MutationObserver API.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexthillen%2Fbetter-markdown-anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexthillen%2Fbetter-markdown-anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexthillen%2Fbetter-markdown-anki/lists"}