{"id":15014533,"url":"https://github.com/waylonwalker/darkmark","last_synced_at":"2026-03-17T23:02:00.013Z","repository":{"id":105814988,"uuid":"597837787","full_name":"WaylonWalker/darkmark","owner":"WaylonWalker","description":"Runs codeblocks marked with the darkmark, and inserts the results.","archived":false,"fork":false,"pushed_at":"2023-06-01T22:30:35.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T14:08:11.585Z","etag":null,"topics":["interactive","ipython","markdown","python"],"latest_commit_sha":null,"homepage":"","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/WaylonWalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-02-05T19:32:03.000Z","updated_at":"2023-02-06T14:50:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"909bfed5-78fd-4f08-8ac2-ecaefc8bafcb","html_url":"https://github.com/WaylonWalker/darkmark","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/WaylonWalker/darkmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fdarkmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fdarkmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fdarkmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fdarkmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WaylonWalker","download_url":"https://codeload.github.com/WaylonWalker/darkmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fdarkmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"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":["interactive","ipython","markdown","python"],"created_at":"2024-09-24T19:45:44.498Z","updated_at":"2026-03-17T23:01:59.996Z","avatar_url":"https://github.com/WaylonWalker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DarkMark\n\n\u003cimg src=\"https://user-images.githubusercontent.com/22648375/216847624-d4dbc93b-76d7-4d2c-ba71-fa58b4b331e5.png\" alt=\"darkmark\" width=\"250\" align=right\u003e\n\n\nRuns codeblocks marked with the darkmark, and inserts the results.  \n\nDarkMark uses tree-sitter to identify codeblocks.  Currently it only supports python codeblocks in markdown files and runs them with ipython.  Handy for writing docs/blog posts so you can stay right in your markdown editor of choice and get the outputs in line.  No need to jump into a whole other tool just to do live execution.\n\n---\n\n## Installation\n\n```console\npip install darkmark\n```\n\n```console\n❯ darkmark --help\n\n Usage: darkmark [OPTIONS] COMMAND [ARGS]...\n\n run code blocks in markdown\n\n╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮\n│ --install-completion        [bash|zsh|fish|powershell|pwsh]  Install completion for the specified shell.       │\n│                                                              [default: None]                                   │\n│ --show-completion           [bash|zsh|fish|powershell|pwsh]  Show completion for the specified shell, to copy  │\n│                                                              it or customize the installation.                 │\n│                                                              [default: None]                                   │\n│ --help                                                       Show this message and exit.                       │\n╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────╮\n│ run                                                                                                            │\n│ sexp                                                                                                           │\n│ tui                                                                                                            │\n│ watch                                                                                                          │\n╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n\n```\n\n## Usage\n\nMark your codeblocks with the darkmark.\n\n~~~ markdown\n```python {.python .darkmark}\nr = requests.get('https://waylonwalker.com')\nr.status_code\n```\n~~~\n\nThen run `darkmark \u003cfile\u003e.md` and darkmark will insert the results of the codeblock.\n\n~~~ markdown\n``` {.console .darkmark_output}\n200\n```\n~~~\n\n## Automatic imports\n\nAutomatic imports are provided by [pyflyby](https://github.com/deshaw/pyflyby).\n\n## Supported Languages\n\nCurrently the only language supported is python.\n\n* python\n\n## Example\n\nRunning `darkmark watch \u003cfile.md\u003e` updates the file on save.\n\n[darkmark.webm](https://user-images.githubusercontent.com/22648375/216849738-12897dfc-3e2b-4e5b-9b6d-cbb29c3ae782.webm)\n\n## License\n\n`darkmark` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fdarkmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaylonwalker%2Fdarkmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fdarkmark/lists"}