{"id":25857953,"url":"https://github.com/noclaps/znak","last_synced_at":"2025-09-14T13:51:53.887Z","repository":{"id":287293701,"uuid":"952586515","full_name":"noClaps/znak","owner":"noClaps","description":"A Markdown-like markup language","archived":false,"fork":false,"pushed_at":"2025-09-13T00:37:52.000Z","size":647,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T02:36:21.476Z","etag":null,"topics":["go","golang","markdown","markup-language","mathml","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://noclaps.github.io/znak/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noClaps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-21T14:27:36.000Z","updated_at":"2025-09-13T00:37:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d659782-1b29-4841-af64-031a8803d47c","html_url":"https://github.com/noClaps/znak","commit_stats":null,"previous_names":["noclaps/znak"],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/noClaps/znak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fznak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fznak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fznak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fznak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noClaps","download_url":"https://codeload.github.com/noClaps/znak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noClaps%2Fznak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275114821,"owners_count":25407928,"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-09-14T02:00:10.474Z","response_time":75,"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":["go","golang","markdown","markup-language","mathml","syntax-highlighting"],"created_at":"2025-03-01T19:18:37.656Z","updated_at":"2025-09-14T13:51:53.880Z","avatar_url":"https://github.com/noClaps.png","language":"Go","readme":"# Znak\n\nA parser for a Markdown-like markup language that supports a smaller subset of Markdown syntax, and is stricter and more opinionated. It has features like syntax highlighting, $\\LaTeX$, and heading IDs built-in.\n\nYou can read the syntax [here](./docs/syntax.md). You can also read the documentation for Highlight (the syntax highlighter in Znak) [here](./docs/highlight.md).\n\n## Usage\n\nAdd it as a dependency to your project:\n\n```sh\ngo get -u github.com/noclaps/znak\n```\n\nThen you can use it in your code:\n\n```go\npackage main\n\nimport (\n\t\"github.com/noclaps/znak\"\n\t\"github.com/noclaps/znak/highlight\"\n)\n\nfunc main() {\n\tthemeFile, err := os.ReadFile(\"path/to/theme.css\")\n\tcodeTheme, err := highlight.NewTheme(themeFile)\n\n\tinputFile, err := os.ReadFile(\"path/to/file.md\")\n\tinput := string(inputFile)\n\n\trenderedHtml, err := znak.Render(input, codeTheme)\n\theadings := znak.Headings(input)\n\tfrontmatter, err := znak.Frontmatter(input)\n}\n```\n\n## Acknowledgements\n\n$\\LaTeX$ is rendered to MathML using [Wyatt915/TreeBlood](https://github.com/Wyatt915/treeblood).\n\nThe example code theme in `theme.css` is taken from [PyaeSoneAungRgn/github-zed-theme](https://github.com/PyaeSoneAungRgn/github-zed-theme).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoclaps%2Fznak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoclaps%2Fznak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoclaps%2Fznak/lists"}