{"id":22974120,"url":"https://github.com/diversen/markdown-it-embed-mathjax","last_synced_at":"2025-04-02T07:25:01.575Z","repository":{"id":138270906,"uuid":"60028040","full_name":"diversen/markdown-it-embed-mathjax","owner":"diversen","description":"Markdown-it with support for CSS classes, mathjax, and html5 video embed.","archived":false,"fork":false,"pushed_at":"2017-01-28T10:37:21.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T05:04:01.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/diversen.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}},"created_at":"2016-05-30T17:36:59.000Z","updated_at":"2019-02-02T13:58:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"9af976e9-838c-4e3c-a733-617cbc1a7cc3","html_url":"https://github.com/diversen/markdown-it-embed-mathjax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fmarkdown-it-embed-mathjax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fmarkdown-it-embed-mathjax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fmarkdown-it-embed-mathjax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fmarkdown-it-embed-mathjax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/markdown-it-embed-mathjax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552870,"owners_count":20795841,"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":[],"created_at":"2024-12-15T00:00:11.129Z","updated_at":"2025-04-02T07:25:01.558Z","avatar_url":"https://github.com/diversen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-it-embed-mathjax\n\nMarkdown-it with mathjax, and html5 video embed\n\n[Video embed](https://www.npmjs.com/package/markdown-it-html5-embed)\n\n[Mathjax](https://www.npmjs.com/package/markdown-it-mathjax)\n\n[Decorate](https://github.com/rstacruz/markdown-it-decorate) \n\n# Install: \n\n    // Install and save\n    npm install markdown-it-embed-mathjax --save\n\n# Usage as lib: \n\n    // include the lib.\n    md = require('markdown-it-embed-mathjax');\n\n    // Change markdown-it default options as you like, e.g.: \n    md.options.html = true;\n\n    // Render a string\n    var str = \"\u003cp\u003etest\u003c/p\u003e# her er en test ![test](./test/test.mp4) $1 *2* 3$\";\n    str+=\"\\n\\nPara with a CSS class{my-class}\";\n    console.log(md.render(str));\n\n# Usage as CLI command\n\n    npm install -g markdown-it-embed-mathjax\n\nTranslate a string to a markdown-it rendered string (with option for CSS classes, mp4 embedding and mathjax): \nReads from stdin or file(s), and outputs to stdout. \n\nExample with stdin from a shell: \n\n    echo \"A test with a auto link: http://github.com/diversen\"  | markdown-it-embed-mathjax --linkify\n\nExample with file(s): \n     \n    markdown-it-embed-mathjax README.md --linkify --html --breaks\n\nOptions are the same as markdown-it options:\n\n    opts.boolean = ['help', 'html', 'xhtmlOut', 'breaks', 'linkify', 'typographer','decorate', 'embed', 'mathjax'];\n    opts.string = ['langPrefix', 'quotes'];\n\nVideo (like images):\n\n    ![video test](http://techslides.com/demos/sample-videos/small.mp4)\n\nMathjax: \n\n    $1 *2* 3$\n\n@ MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fmarkdown-it-embed-mathjax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fmarkdown-it-embed-mathjax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fmarkdown-it-embed-mathjax/lists"}