{"id":33185657,"url":"https://github.com/robolab-pavia/mdt","last_synced_at":"2025-11-22T04:01:28.503Z","repository":{"id":57440503,"uuid":"322678685","full_name":"robolab-pavia/mdt","owner":"robolab-pavia","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-11T19:59:40.000Z","size":125,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-28T13:26:18.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robolab-pavia.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}},"created_at":"2020-12-18T18:47:54.000Z","updated_at":"2024-05-27T14:40:00.000Z","dependencies_parsed_at":"2022-09-26T17:20:38.569Z","dependency_job_id":null,"html_url":"https://github.com/robolab-pavia/mdt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robolab-pavia/mdt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robolab-pavia%2Fmdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robolab-pavia%2Fmdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robolab-pavia%2Fmdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robolab-pavia%2Fmdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robolab-pavia","download_url":"https://codeload.github.com/robolab-pavia/mdt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robolab-pavia%2Fmdt/sbom","scorecard":{"id":781087,"data":{"date":"2025-08-11","repo":{"name":"github.com/robolab-pavia/mdt","commit":"ce24e1695cbdabcd472e5e3d48efc4a22a09481f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T04:56:20.758Z","repository_id":57440503,"created_at":"2025-08-23T04:56:20.758Z","updated_at":"2025-08-23T04:56:20.758Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285731803,"owners_count":27222214,"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-11-22T02:00:05.934Z","response_time":64,"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":[],"created_at":"2025-11-16T05:00:20.098Z","updated_at":"2025-11-22T04:01:28.498Z","avatar_url":"https://github.com/robolab-pavia.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"markdown\"\u003e\u003c/a\u003eMarkdown"],"sub_categories":[],"readme":"# mdt\n\nMarkDown in Terminal - Renders a markdown page in the terminal\n\n## Welcome to MarkDown in the Terminal!\n\nHi! I am your first Markdown file that you can open with `mdt`.\nIf you want to learn about `mdt`, you can clone this repository and open me from the terminal with\n\n```\nmdt show README.md\n```\n\nIf you want to play with Markdown, you can edit me. Once you have finished with me, you can run me in your terminal.\n\n## Installation\n\nClone the repository.\n\nIf you have administration permissions, run:\n\n```\npip install mdt-viewer\n```\n\n## Features\n\n`mdt` has the following features:\n\n* Interactive mode with dynamic adaptation to the terminal width.\n* You can choose your favourite among some available themes.\n* You can edit a them of add your own custom theme. Themes are defined with a simple JSON \"CSS-like\" format.\n* Intelligent word wrapping.\n\nIn interactive mode you can:\n\n* Open web links in the default *browser* (requires a graphic session to work).\n* Follow links to local files forward and backward, allowing a convenient exploration of \"wiki-style\" files.\n\n## Project\n\n`mdt` is built with Python, and uses the following libraries:\n\n* [Mistletoe](https://github.com/miyuchina/mistletoe) to parse Markdown files.\n* [Python Prompt Toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) for the interactive mode.\n* [Click](https://click.palletsprojects.com/en/7.x/) to handle commmand line parameters.\n* [ansiwrap](https://pypi.org/project/ansiwrap/) to perform the word wrapping.\n\n# Commands\n\nThe following commands are available:\n\n```\n$ mdt --help\nUsage: mdt [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --version  Show the version and exit.\n  --help     Show this message and exit.\n\nCommands:\n  gallery  Shows a gallery with the available themes.\n  show     Display the specified Markdown file.\n  themes   Lists of available themes.\n```\n\n## Command `gallery`\n\nShows a sample markdown file with the application of all the available themes for demonstration purposes.\n\n## Command `show`\n\nDisplays the specified markdown file with the default theme.\n\nThe theme can be selected by specifying the number among the ones available, or by using the `--theme-file` option to specify a custom theme.\n\n```\n$ mdt show --help\nUsage: mdt show [OPTIONS] MDFILE\n\n  Display the specified Markdown file.\n\nOptions:\n  -i                 Interactive mode.\n  --col INTEGER      Set the text width in number of columns.\n  --rmargin INTEGER  Set the right margin.\n  --theme INTEGER    Use a default theme by ID.\n  --theme-file TEXT  Use the specified theme file.\n  --help             Show this message and exit.\n```\n\n### Interactive mode\n\nWith the `-i` option, `mdt` is started in \"interactive mode\".\nIt then uses an internal pager which allows the scrolling of the text, and an intelligent word-wrapping.\n\nMoreover, by pressing the `Tab` key, the pager moves to the next link in the markdown file.\nPressing `ENTER` on a link opens that link.\nA link to a web page opens the browser.\nA link to a file on the filesystem opens that file in `mdt`.\nThe history of opened files can be navigated using left and right arrows.\n\n## Command `themes`\n\n`mdt` comes with some sample themes.\nThis command lists the available themes.\n\nMore themes will be added.\nPull requests are welcome to provide new themes.\n\n# Themimg\n\nThe themes are specified in a file with JSON format.\nExamples are available in the `mdt/themes` directory.\n\nThe format is inspired by the one in the [Glamour Go library](https://github.com/charmbracelet/glamour/), with some additional fields to provide more options.\n\nAn example of theme file is:\n\n```\n{\n  \"document\": {\n    \"prefix\": \"\",\n    \"suffix\": \"\",\n    \"margin\": 2\n  },\n  \"block_quote\": {\n    \"prefix\": \"\",\n    \"suffix\": \"\",\n    \"color\": \"\",\n    \"background_color\": \"\",\n    \"bold\": false,\n    \"underline\": false,\n    \"blink\": false\n  },\n  ...\n```\n\nwhere the styling items should be pretty self-explanatory.\n\nThe available items that can be themed are: `document` `block_quote`, `paragraph`, `heading`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `strikethrough`, `emph`, `strong`, `item`, `list`, `link`, `selected_link`, `inline_code`, `block_code`.\n\n# Contributors\n\n* Tullio Facchinetti\n* Guido Benetti\n* Andrea Catena\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobolab-pavia%2Fmdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobolab-pavia%2Fmdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobolab-pavia%2Fmdt/lists"}