{"id":17868223,"url":"https://github.com/matmoore/markdown-parser","last_synced_at":"2026-07-04T03:33:35.620Z","repository":{"id":43024215,"uuid":"268296925","full_name":"MatMoore/markdown-parser","owner":"MatMoore","description":"A home made artisanal markdown parser","archived":false,"fork":false,"pushed_at":"2022-03-22T19:37:31.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T06:44:43.273Z","etag":null,"topics":["exercise"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatMoore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-31T14:28:07.000Z","updated_at":"2022-03-22T19:37:32.000Z","dependencies_parsed_at":"2022-09-10T01:42:44.055Z","dependency_job_id":null,"html_url":"https://github.com/MatMoore/markdown-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatMoore/markdown-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Fmarkdown-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Fmarkdown-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Fmarkdown-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Fmarkdown-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatMoore","download_url":"https://codeload.github.com/MatMoore/markdown-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Fmarkdown-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35109210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["exercise"],"created_at":"2024-10-28T09:57:19.370Z","updated_at":"2026-07-04T03:33:35.584Z","avatar_url":"https://github.com/MatMoore.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown parser\n\nA home made artisanal markdown parser.\n\nThis parses a very small subset of markdown. It can generate formatted text in a console, using ANSI escape sequences.\n\n## Usage\n\n`ruby markdown_parser.rb \u003c example.md`\n\n![Screenshot of console output](screenshot.png)\n\n## How it works\nThe project is split into 4 components:\n\n- [tokenizer.rb](tokenizer.rb) - splits text into a sequence of tokens\n- [parser.rb](parser.rb) - builds an abstract syntax tree (AST) from the tokens\n- [generator.rb](generator.rb) - generates formatted text from the AST (using the [visitor pattern](https://en.wikipedia.org/wiki/Visitor_pattern))\n- [markdown_parser.rb](markdown_parser.rb) - a simple command line interface\n\n## References\n\n- [Writing a Markdown Compiler](https://blog.beezwax.net/2017/07/07/writing-a-markdown-compiler/)\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmoore%2Fmarkdown-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatmoore%2Fmarkdown-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmoore%2Fmarkdown-parser/lists"}