{"id":14972866,"url":"https://github.com/wagtail-nest/wagtail-polymath","last_synced_at":"2025-04-06T16:14:04.499Z","repository":{"id":51320107,"uuid":"89284520","full_name":"wagtail-nest/wagtail-polymath","owner":"wagtail-nest","description":"Beautiful equations in your StreamField content.","archived":false,"fork":false,"pushed_at":"2024-10-30T11:34:20.000Z","size":172,"stargazers_count":37,"open_issues_count":4,"forks_count":15,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-30T13:09:48.770Z","etag":null,"topics":["cms","django","django-application","mathjax","python","wagtail","wagtail-cms"],"latest_commit_sha":null,"homepage":"","language":"Python","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/wagtail-nest.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-24T20:33:26.000Z","updated_at":"2025-01-28T06:41:54.000Z","dependencies_parsed_at":"2025-01-07T04:33:21.215Z","dependency_job_id":"7f2cc9a6-6ee2-4d3c-b5b8-0d61d6c491fb","html_url":"https://github.com/wagtail-nest/wagtail-polymath","commit_stats":{"total_commits":35,"total_committers":5,"mean_commits":7.0,"dds":0.5428571428571429,"last_synced_commit":"22ed81491a0cb18ed129d434c98ab82fd2e8bd4b"},"previous_names":["jamesramm/wagtailmath"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagtail-nest%2Fwagtail-polymath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagtail-nest%2Fwagtail-polymath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagtail-nest%2Fwagtail-polymath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagtail-nest%2Fwagtail-polymath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wagtail-nest","download_url":"https://codeload.github.com/wagtail-nest/wagtail-polymath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509237,"owners_count":20950232,"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":["cms","django","django-application","mathjax","python","wagtail","wagtail-cms"],"created_at":"2024-09-24T13:47:39.713Z","updated_at":"2025-04-06T16:14:04.329Z","avatar_url":"https://github.com/wagtail-nest.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wagtail-polymath\n\n[![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD--3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![PyPI version](https://img.shields.io/pypi/v/wagtailmath.svg?style=flat)](https://pypi.org/project/wagtailmath)\n[![Build status](https://img.shields.io/github/actions/workflow/status/wagtail-nest/wagtail-polymath/test.yml?branch=main)](https://github.com/wagtail-nest/wagtail-polymath/actions)\n\n## Links\n\n- [Documentation](https://github.com/wagtail-nest/wagtail-polymath/blob/main/README.md)\n- [Changelog](https://github.com/wagtail-nest/wagtail-polymath/blob/main/CHANGELOG.md)\n- [Contributing](https://github.com/wagtail-nest/wagtail-polymath/blob/main/CONTRIBUTING.md)\n- [Discussions](https://github.com/wagtail-nest/wagtail-polymath/discussions)\n- [Security](https://github.com/wagtail-nest/wagtail-polymath/security)\n\nwagtail-polymath allows you to write equations in your\n[Wagtail](https://github.com/wagtail/wagtail) content using markup and\nrender them beautifully.\n\nwagtail-polymath provides a `MathBlock` so you can write equations in markup\n(TeX, MathML, ASCIIMath) and render them with MathJax. It features a\nlive preview:\n\n![](https://github.com/wagtail-nest/wagtail-polymath/blob/main/docs/images/mathblock.png)\n\n`MathBlock` uses MathJax for rendering so there is very little to do on\nthe front end. Simply include the MathJax JS and render the raw\n`MathBlock` content as you would for any other streamfield plain text\nblock.\n\nwagtail-polymath even includes a template tag to include the MathJax JS for\nyou from a CDN. By default, MathJax is configured to accept all\nrecognised markup (TeX, MathML, ASCIIMath) and renders them to HTML. To\nchange the configuration, you can pass the desired config command to the\ntemplatetag. See the [MathJax documentation](https://docs.mathjax.org/en/v2.7-latest/config-files.html#combined-configurations)\nfor possible configurations.\n\nFor help on using the markup languages see the relevant MathJax\ndocumentation (e.g. https://docs.mathjax.org/en/v2.7-latest/tex.html) and\nthe markup language-specific documentation (e.g. https://en.wikibooks.org/wiki/LaTeX)\n\n## Quickstart\n\nInstall wagtailmath:\n\n    pip install wagtailmath\n\nAdd it to your `INSTALLED_APPS`:\n\n```python\n# settings.py\n\nINSTALLED_APPS = (\n    # ...\n    \"wagtailmath\",\n    # ...\n)\n```\n\nUse `MathBlock` in your `StreamField` content:\n\n```python\nfrom wagtailmath.blocks import MathBlock\n\nclass MyPage(Page):\n    body = StreamField([\n        ('heading', blocks.CharBlock(classname=\"full title\")),\n        ('paragraph', blocks.RichTextBlock()),\n        ('equation', MathBlock())\n    ])\n```\n\nUse the `mathjax` template tag in your front end template to load the\nMathJax library:\n\n```django+html\n{% load wagtailmath %}\n...\n\n\u003cscript src=\"{% mathjax %}\"\u003e\u003c/script\u003e\n```\n\n\n## Contributing\n\nAll contributions are welcome! See [CONTRIBUTING.md](https://github.com/wagtail-nest/wagtail-polymath/blob/main/CONTRIBUTING.md)\n\nSupported versions:\n\n- Python 3.8, 3.9, 3.10, 3.11, 3.12\n- Django 4.2, 5.0\n- Wagtail 5.2 (LTS), 6.0, 6.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwagtail-nest%2Fwagtail-polymath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwagtail-nest%2Fwagtail-polymath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwagtail-nest%2Fwagtail-polymath/lists"}