{ "info": { "author": "Zahari Kassabov", "author_email": "zk261@cam.ac.uk", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# pandoc-static-katex\n\nA simple [pandoc](https://pandoc.org/) [filter](https://pandoc.org/filters.html)\nthat uses [KaTeX](https://katex.org/) to render math equations at build time. It\nmakes possible to display equations without any JavaScript execution in the\nbrowser.\n\n\n## Example usage\n\n```bash\n$ cat math.md\n# A title and whatnot.\n\nThis is inline $\\log(\\frac{1}{2})$ and this is display:\n\n$$\n\\int_{-\\infty}^{+\\infty}\\Lamda(x)dx\n$$\n\n$ pandoc -s math.md --filter pandoc-static-katex --to html5 --css https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.3/katex.min.css -o math.html\n```\n\nNote that the `--katex` of `pandoc` option doesn't add the styles since `pandoc`\ndoesn't see any math element after the filter pass.\n\n## Installation\n\nThe script can be installed by pip:\n\n```\npython3 -m pip install pandoc_static_katex\n```\n\nWhen the filter is run, KaTeX needs to be installed with\n[nodejs](https://nodejs.org/en/); the command\n\n```bash\nnpx katex\n```\n\nmust work on the current path. The filter has been developed with version 0.10.2\nof KaTeX.\n\nAdditionally, `pandoc` is needed for most usages.\n\n### Development mode\n\nIt requires [flit](https://flit.readthedocs.io/en/latest/) to be installed from\nsource in development mode.\n\n```bash\nflit install --symlink\n```\n\n## Test script\n\nIf `pandoc`, `katex` and the filter have all been installed correctly, the\ncommand:\n\n```\npython3 run_test.py\n```\n\nshould produce rendered results in the `test_results` folder.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Zaharid/pandoc_static_katex", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pandoc_static_katex", "package_url": "https://pypi.org/project/pandoc_static_katex/", "platform": "", "project_url": "https://pypi.org/project/pandoc_static_katex/", "project_urls": { "Homepage": "https://github.com/Zaharid/pandoc_static_katex" }, "release_url": "https://pypi.org/project/pandoc_static_katex/0.1.1/", "requires_dist": [ "pandocfilters" ], "requires_python": ">3.6", "summary": "A pandoc filter that renders math at build time using KaTeX.", "version": "0.1.1" }, "last_serial": 5376746, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6c1cb5dd0aa4cc59d22b17293fe7e6a6", "sha256": "b4baf1cce40c00cc65e3fa30673140ab4c3644fa31c610c233b70a7a29c19f71" }, "downloads": -1, "filename": "pandoc_static_katex-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6c1cb5dd0aa4cc59d22b17293fe7e6a6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.6", "size": 3704, "upload_time": "2019-06-09T02:18:18", "url": "https://files.pythonhosted.org/packages/e4/85/62c8c3b8bf9eb0b2b0aa6f701c9a484f8112f21e45c2597511d6742e15ba/pandoc_static_katex-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c604203e863c443431ba749b5c5631c1", "sha256": "f098abdaa0fb14fd485440552632d42424ec736c339fc01bcde8ede484df5774" }, "downloads": -1, "filename": "pandoc_static_katex-0.1.tar.gz", "has_sig": false, "md5_digest": "c604203e863c443431ba749b5c5631c1", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 5221, "upload_time": "2019-06-09T02:18:21", "url": "https://files.pythonhosted.org/packages/4e/a6/2c02752cbf6f58b2cc09676f7dd4c51396359356fa594b01b310d989b592/pandoc_static_katex-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "caf36159192c543763a2c58dcb01301a", "sha256": "ba13b6ac88394202019b114109f4b305d4a30727f310de933338d59ac18e0565" }, "downloads": -1, "filename": "pandoc_static_katex-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "caf36159192c543763a2c58dcb01301a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.6", "size": 4451, "upload_time": "2019-06-09T03:30:38", "url": "https://files.pythonhosted.org/packages/3e/38/171ab5ee592e1b81c53161404da6e45f70f51b17757b1d314833bd51714d/pandoc_static_katex-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f6aaa3a008f5508b0271053d4217fbc", "sha256": "6b3981826b50e523c478e37eed7bcd653ada122602cd7a3717f6fe32f56adae3" }, "downloads": -1, "filename": "pandoc_static_katex-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4f6aaa3a008f5508b0271053d4217fbc", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 5245, "upload_time": "2019-06-09T03:30:40", "url": "https://files.pythonhosted.org/packages/db/a4/2eb6ce22ebd58c16a8fbc6e6572e9da5f618cb0ff52e07d1df22d8b15a62/pandoc_static_katex-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "caf36159192c543763a2c58dcb01301a", "sha256": "ba13b6ac88394202019b114109f4b305d4a30727f310de933338d59ac18e0565" }, "downloads": -1, "filename": "pandoc_static_katex-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "caf36159192c543763a2c58dcb01301a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.6", "size": 4451, "upload_time": "2019-06-09T03:30:38", "url": "https://files.pythonhosted.org/packages/3e/38/171ab5ee592e1b81c53161404da6e45f70f51b17757b1d314833bd51714d/pandoc_static_katex-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f6aaa3a008f5508b0271053d4217fbc", "sha256": "6b3981826b50e523c478e37eed7bcd653ada122602cd7a3717f6fe32f56adae3" }, "downloads": -1, "filename": "pandoc_static_katex-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4f6aaa3a008f5508b0271053d4217fbc", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.6", "size": 5245, "upload_time": "2019-06-09T03:30:40", "url": "https://files.pythonhosted.org/packages/db/a4/2eb6ce22ebd58c16a8fbc6e6572e9da5f618cb0ff52e07d1df22d8b15a62/pandoc_static_katex-0.1.1.tar.gz" } ] }