{"id":17658823,"url":"https://github.com/volfpeter/markyp-highlightjs","last_synced_at":"2026-02-24T09:03:10.648Z","repository":{"id":57439800,"uuid":"174803538","full_name":"volfpeter/markyp-highlightjs","owner":"volfpeter","description":"HTML code highlighting markyp extension based on highlight.js","archived":false,"fork":false,"pushed_at":"2025-05-05T13:13:08.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T20:43:52.054Z","etag":null,"topics":["code-generator","code-highlight","html-css-javascript","html5","markup"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/volfpeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2019-03-10T09:38:23.000Z","updated_at":"2025-05-05T13:13:11.000Z","dependencies_parsed_at":"2024-12-11T12:42:21.445Z","dependency_job_id":"65a65a7f-754c-4059-9a91-859ede92ee8f","html_url":"https://github.com/volfpeter/markyp-highlightjs","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"eecc3ece29ce00e2f5286f21a4d515413952b09c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/volfpeter/markyp-highlightjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fmarkyp-highlightjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fmarkyp-highlightjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fmarkyp-highlightjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fmarkyp-highlightjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volfpeter","download_url":"https://codeload.github.com/volfpeter/markyp-highlightjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volfpeter%2Fmarkyp-highlightjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29777609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code-generator","code-highlight","html-css-javascript","html5","markup"],"created_at":"2024-10-23T15:43:24.152Z","updated_at":"2026-02-24T09:03:05.637Z","avatar_url":"https://github.com/volfpeter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/volfpeter/markyp-highlightjs.svg?branch=master)](https://travis-ci.org/volfpeter/markyp-highlightjs)\n[![Downloads](https://pepy.tech/badge/markyp-highlightjs)](https://pepy.tech/project/markyp-highlightjs)\n[![Downloads](https://pepy.tech/badge/markyp-highlightjs/month)](https://pepy.tech/project/markyp-highlightjs/month)\n[![Downloads](https://pepy.tech/badge/markyp-highlightjs/week)](https://pepy.tech/project/markyp-highlightjs/week)\n\n# markyp-highlightjs\n\nHighlight.js-based syntax highlighting for web pages built with [markyp-html](https://github.com/volfpeter/markyp-html).\n\n## Installation\n\nThe project is listed on the Python Package Index, it can be installed simply by executing `pip install markyp-highlightjs`.\n\n## Getting started\n\nIf you are not familiar with the basic concepts of `markyp`, please start by having a look at its documentation [here](https://github.com/volfpeter/markyp).\n\nThe following code shows the creation of a simple webpage that displays syntax highlighted Python code. There are three things to note in the example:\n\n- The selected theme (CSS) is added to the head of the document.\n- The syntax highlighted code is created using the `highlight()` method.\n- The JavaScript code that imports and initializes Highlight.js is added to the `javascript` section of the page.\n\n```Python\nfrom markyp_html import webpage\nfrom markyp_highlightjs import js, themes, highlight\n\ncode = \"\\n\".join([\n    \"from markyp_html import webpage\",\n    \"from markyp_highlightjs import js, themes, highlight\",\n    \"page = webpage(\",\n    \"    highlight(\\\"import antigravity\\\", language=\\\"python\\\"),\",\n    \"    page_title=\\\"markyp-highlightjs demo page\\\",\",\n    \"    head_elements=[themes.darcula],\",\n    \"    javascript=js.js\",\n    \")\",\n    \"\",\n    \"print(page)\"\n])\n\npage = webpage(\n    highlight(code, language=\"python\"),\n    page_title=\"markyp-highlightjs demo page\",\n    head_elements=[themes.github],\n    javascript=js.js\n)\n\nprint(page)\n```\n\nFor more details on how this package works, please see [markyp](https://github.com/volfpeter/markyp) and [markyp-html](https://github.com/volfpeter/markyp-html).\n\n## Community guidelines\n\nIn general, please treat each other with respect and follow the below guidelines to interact with the project:\n\n- _Questions, feedback_: Open an issue with a `[Question] \u003cissue-title\u003e` title.\n- _Bug reports_: Open an issue with a `[Bug] \u003cissue-title\u003e` title, an adequate description of the bug, and a code snippet that reproduces the issue if possible.\n- _Feature requests and ideas_: Open an issue with an `[Enhancement] \u003cissue-title\u003e` title and a clear description of the enhancement proposal.\n\n## Contribution guidelines\n\nEvery form of contribution is welcome, including documentation improvements, tests, bug fixes, and feature implementations.\n\nPlease follow these guidelines to contribute to the project:\n\n- Make sure your changes match the documentation and coding style of the project, including [PEP 484](https://www.python.org/dev/peps/pep-0484/) type annotations.\n- `mypy` is used to type-check the codebase, submitted code should not produce typing errors. See [this page](http://mypy-lang.org/) for more information on `mypy`.\n- _Small_ fixes can be submitted simply by creating a pull request.\n- Non-trivial changes should have an associated [issue](#community-guidelines) in the issue tracker that commits must reference (typically by adding `#refs \u003cissue-id\u003e` to the end of commit messages).\n- Please write [tests](#testing) for the changes you make (if applicable).\n\nIf you have any questions about contributing to the project, please contact the project owner.\n\nAs mentioned in the [contribution guidelines](#contribution-guidelines), the project is type-checked using `mypy`, so first of all, the project must pass `mypy`'s static code analysis.\n\nThe project is tested using `pytest`. The chosen test layout is that tests are outside the application code, see [this page](https://docs.pytest.org/en/latest/goodpractices.html#tests-outside-application-code) for details on what it means in practice.\n\nIf `pytest` is installed, the test set can be executed using the `pytest test` command from within the project directory.\n\nIf `pytest-cov` is also installed, a test coverage report can be generated by executing `pytest test --cov markyp_highlightjs` from the root directory of the project.\n\n## License - MIT\n\nThe library is open-sourced under the conditions of the MIT [license](https://choosealicense.com/licenses/mit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolfpeter%2Fmarkyp-highlightjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolfpeter%2Fmarkyp-highlightjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolfpeter%2Fmarkyp-highlightjs/lists"}