{"id":20735130,"url":"https://github.com/djsutherland/grunt-mathjax-node-page","last_synced_at":"2025-10-11T16:16:46.585Z","repository":{"id":57255343,"uuid":"97651098","full_name":"djsutherland/grunt-mathjax-node-page","owner":"djsutherland","description":"Grunt plugin to prerender MathJax","archived":false,"fork":false,"pushed_at":"2017-07-26T12:06:26.000Z","size":76,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T12:39:28.579Z","etag":null,"topics":["grunt","grunt-plugins","mathjax"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djsutherland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-18T23:00:43.000Z","updated_at":"2017-07-18T23:03:43.000Z","dependencies_parsed_at":"2022-09-04T14:53:35.623Z","dependency_job_id":null,"html_url":"https://github.com/djsutherland/grunt-mathjax-node-page","commit_stats":null,"previous_names":["dougalsutherland/grunt-mathjax-node-page"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/djsutherland/grunt-mathjax-node-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fgrunt-mathjax-node-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fgrunt-mathjax-node-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fgrunt-mathjax-node-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fgrunt-mathjax-node-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djsutherland","download_url":"https://codeload.github.com/djsutherland/grunt-mathjax-node-page/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fgrunt-mathjax-node-page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007786,"owners_count":26084364,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["grunt","grunt-plugins","mathjax"],"created_at":"2024-11-17T05:34:31.120Z","updated_at":"2025-10-11T16:16:46.560Z","avatar_url":"https://github.com/djsutherland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-mathjax-node-page\n\n\u003e Grunt plugin to prerender MathJax in your HTML pages, with mathjax-node-page.\n\n## Getting Started\nThis plugin requires Grunt `^1.0.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-mathjax-node-page --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-mathjax-node-page');\n```\n\n## The \"mathjax_node_page\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `mathjax_node_page` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  mathjax_node_page: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.page\nType: `Object`\nDefault value: `{}`\n\n`pageConfig` for [mathjax-node-page](https://github.com/pkra/mathjax-node-page/#Usage).\nFor example, you might want `{singleDollars: true}`.\n\n#### options.mjnode\nType: `Object`\nDefault value: `{svg: true}`\n\nConfiguration options for [mathjax-node](https://github.com/mathjax/MathJax-node).\nFor example, you might do `{linebreaks: true, width: 80}` to break long equations\nat 80ex.\n\n\n### Usage Examples\n\nHere is a simple example that renders `index.html` into `index-rendered.html`, allowing single dollar signs as inline math delimiters:\n\n```js\ngrunt.initConfig({\n  mathjax_node_page: {\n    options: {\n      page: {\n        singleDollars: true\n      }\n    },\n    files: {\n      'index-rendered.html': ['index.html']\n    }\n  }\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n * 2017-07-26   v0.1.3   Remove unused dependency.\n * 2017-07-19   v0.1.2   Finish task properly.\n * 2017-07-19   v0.1.1   Fix README.\n * 2017-07-19   v0.1.0   Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjsutherland%2Fgrunt-mathjax-node-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjsutherland%2Fgrunt-mathjax-node-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjsutherland%2Fgrunt-mathjax-node-page/lists"}