{"id":21245249,"url":"https://github.com/jstransformers/jstransformer-highlight","last_synced_at":"2025-07-10T22:30:59.818Z","repository":{"id":27061785,"uuid":"30527797","full_name":"jstransformers/jstransformer-highlight","owner":"jstransformers","description":"Highlight.js support for JSTransformers.","archived":false,"fork":false,"pushed_at":"2023-02-03T10:21:08.000Z","size":60,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T08:45:03.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npmjs.com/jstransformer-highlight","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/jstransformers.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-09T09:19:14.000Z","updated_at":"2021-02-11T12:04:43.000Z","dependencies_parsed_at":"2023-02-18T05:46:14.790Z","dependency_job_id":null,"html_url":"https://github.com/jstransformers/jstransformer-highlight","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstransformers","download_url":"https://codeload.github.com/jstransformers/jstransformer-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225426943,"owners_count":17472576,"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-11-21T01:49:28.983Z","updated_at":"2024-11-21T01:49:29.532Z","avatar_url":"https://github.com/jstransformers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jstransformer-highlight\n\n[Highlight.js](http://highlightjs.org) support for [JSTransformers](http://github.com/jstransformers).\n\n[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-highlight/master.svg)](https://travis-ci.org/jstransformers/jstransformer-highlight)\n[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-highlight/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-highlight)\n[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-highlight/master.svg)](http://david-dm.org/jstransformers/jstransformer-highlight)\n[![NPM version](https://img.shields.io/npm/v/jstransformer-highlight.svg)](https://www.npmjs.org/package/jstransformer-highlight)\n\n### Options\n\n - `lang` - The language the code is in\n - `auto` - defaults to `true` if `lang` is undefined.  Set this to `true` to have highlight.js auto-detect the language.  Set this to `false` to disable auto-detection even when there is no `lang` option.\n\n### Example\n\n```js\nvar highlight = require('jstransformer')(require('jstransformer-highlight'))\n\nhighlight.render('var i = 5 + 10;', { lang: 'javascript' }).body\n//=\u003e '\u003cspan class=\\\"hljs-variable\\\"\u003e\u003cspan class=\\\"hljs-keyword\\\"\u003evar\u003c/span\u003e i\u003c/span\u003e = \u003cspan class=\\\"hljs-number\\\"\u003e5\u003c/span\u003e + \u003cspan class=\\\"hljs-number\\\"\u003e10\u003c/span\u003e;'\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstransformers%2Fjstransformer-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-highlight/lists"}