{"id":34087553,"url":"https://github.com/andredelft/leidenmark","last_synced_at":"2025-12-14T13:47:05.039Z","repository":{"id":62575528,"uuid":"263982798","full_name":"andredelft/leidenmark","owner":"andredelft","description":"A markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML","archived":false,"fork":false,"pushed_at":"2021-08-04T10:56:04.000Z","size":136,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T21:19:34.712Z","etag":null,"topics":["epidoc","leiden-plus","markdown","python","tei","xml"],"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/andredelft.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-05-14T17:36:18.000Z","updated_at":"2024-10-08T12:06:09.000Z","dependencies_parsed_at":"2022-11-03T17:34:23.452Z","dependency_job_id":null,"html_url":"https://github.com/andredelft/leidenmark","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/andredelft/leidenmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andredelft%2Fleidenmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andredelft%2Fleidenmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andredelft%2Fleidenmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andredelft%2Fleidenmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andredelft","download_url":"https://codeload.github.com/andredelft/leidenmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andredelft%2Fleidenmark/sbom","scorecard":{"id":192557,"data":{"date":"2025-08-11","repo":{"name":"github.com/andredelft/leidenmark","commit":"dad18405f3dc961c04f1cbdd7ff81f9d7565f430"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/run-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/run-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/run-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tag-version.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/tag-version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tag-version.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/tag-version.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tag-version.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/tag-version.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tag-version.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/andredelft/leidenmark/tag-version.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/run-tests.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/run-tests.yml:23","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/run-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/tag-version.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-55x5-fj6c-h6m8","Warn: Project is vulnerable to: PYSEC-2014-9 / GHSA-57qw-cc2g-pv5p","Warn: Project is vulnerable to: PYSEC-2021-19 / GHSA-jq4v-f5q6-mjqq","Warn: Project is vulnerable to: GHSA-pgww-xf46-h92r","Warn: Project is vulnerable to: PYSEC-2022-230 / GHSA-wrxv-2j5q-m38w","Warn: Project is vulnerable to: PYSEC-2018-12 / GHSA-xp26-p53h-6h2p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T21:05:23.843Z","repository_id":62575528,"created_at":"2025-08-16T21:05:23.843Z","updated_at":"2025-08-16T21:05:23.843Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27729153,"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-12-14T02:00:11.348Z","response_time":56,"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":["epidoc","leiden-plus","markdown","python","tei","xml"],"created_at":"2025-12-14T13:47:03.522Z","updated_at":"2025-12-14T13:47:05.034Z","avatar_url":"https://github.com/andredelft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeidenMark\n\n```shell\n$ pip install leidenmark\n```\n\nA Python Markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML. Inspired by the Brill plain text (BPT) format that aims to incorporate Leiden+ into a Markdown-based syntax.\n\n```python\n\u003e\u003e\u003e from leidenmark import leiden_plus\n\u003e\u003e\u003e content = \"\"\"\\\n\u003cD=.r\u003c=\n1. Lorem ipsum dolor\nvac.1lin\n2. sit amet, con[ca.3]c\n3.-etur adipiscing\n=\u003e=D\u003e\n\u003cD=.v\u003c=\nlost.2lin\n6. ut labore et dol\n7.-ore magna aliqua\n=\u003e=D\u003e\"\"\"\n\u003e\u003e\u003e leiden_plus(content, indent=True)\n```\n\nThe output of the above lines is the following XML snippet:\n\n```xml\n\u003cdiv n=\"r\" type=\"textpart\"\u003e\n  \u003cab\u003e\n    \u003cl n=\"1\"\u003eLorem ipsum dolor\u003c/l\u003e\n    \u003cspace quantity=\"1\" unit=\"line\"/\u003e\n    \u003cl n=\"2\"\u003esit amet, con\u003cgap precision=\"low\" quantity=\"3\" reason=\"lost\" unit=\"character\"/\u003ec\u003c/l\u003e\n    \u003cl break=\"no\" n=\"3\"\u003eetur adipiscing\u003c/l\u003e\n  \u003c/ab\u003e\n\u003c/div\u003e\n\u003cdiv n=\"v\" type=\"textpart\"\u003e\n  \u003cab\u003e\n    \u003cgap quantity=\"2\" unit=\"line\"/\u003e\n    \u003cl n=\"6\"\u003eut labore et dol\u003c/l\u003e\n    \u003cl break=\"no\" n=\"7\"\u003eore magna aliqua\u003c/l\u003e\n  \u003c/ab\u003e\n\u003c/div\u003e\n```\n\n`leiden_plus()` is syntactic sugar for the registered Markdown extension, and equivalent to:\n\n```python\n\u003e\u003e\u003e import leidenmark\n\u003e\u003e\u003e from markdown import markdown\n\u003e\u003e\u003e markdown(content, extensions=['leiden_plus']) # Other extensions can be added to this list\n```\n\n## Configuration\n\nGiven that this is a Markdown extension, conventions like `*italics*` and `**bold**` will also be recognized an converted (these in particular will additionally be transformed to the TEI element [`\u003chi\u003e`](https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-hi.html)). Though these are _in principle_ not part of the Leiden+ syntax, _in practice_ the use of italics and boldface is still encountered a lot. Therefore, support is maintaned by default, which can be switched off by passing `strict=True`:\n\n```python\n\u003e\u003e\u003e leiden_plus(content, strict=True)\n```\n\nNB: The blockprocessors for paragraphs and ordered list are always switched off, because they interfer too much with Leiden+.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandredelft%2Fleidenmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandredelft%2Fleidenmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandredelft%2Fleidenmark/lists"}