{"id":16157877,"url":"https://github.com/mrxiaozhuox/markdown-meta-parser","last_synced_at":"2025-08-27T02:07:47.591Z","repository":{"id":57636723,"uuid":"470529340","full_name":"mrxiaozhuox/markdown-meta-parser","owner":"mrxiaozhuox","description":"Parse Markdown to Json","archived":false,"fork":false,"pushed_at":"2022-09-09T21:41:27.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T12:07:25.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mrxiaozhuox.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":"2022-03-16T10:14:02.000Z","updated_at":"2022-09-22T01:13:31.000Z","dependencies_parsed_at":"2022-08-30T10:30:23.380Z","dependency_job_id":null,"html_url":"https://github.com/mrxiaozhuox/markdown-meta-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mrxiaozhuox/markdown-meta-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrxiaozhuox%2Fmarkdown-meta-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrxiaozhuox%2Fmarkdown-meta-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrxiaozhuox%2Fmarkdown-meta-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrxiaozhuox%2Fmarkdown-meta-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrxiaozhuox","download_url":"https://codeload.github.com/mrxiaozhuox/markdown-meta-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrxiaozhuox%2Fmarkdown-meta-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271754367,"owners_count":24815181,"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-08-23T02:00:09.327Z","response_time":69,"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":"2024-10-10T01:51:00.074Z","updated_at":"2025-08-27T02:07:47.529Z","avatar_url":"https://github.com/mrxiaozhuox.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown Meta Parser\n\nParse Markdown Metadata\n\n\n```markdown\n---\ntitle: Hello World\nauthor: mrxiaozhuox\u003cmrxzx.info@gmail.com\u003e\ntags: [post, test]\nreleased: false\n---\n\n# This is my first post!\n\nHello World!!\n```\n\n```rust\n\nlet content = String::from(\"....\");\n\nlet mut type_mark = HashMap::new();\n\ntype_mark.insert(\"tags\".into(), \"array\");\ntype_mark.insert(\"released\".into(), \"bool\");\n\n\nlet meta = MetaData {\n    content,\n    required: vec![\"title\".to_string()],\n    type_mark,\n}\n\nprintln!(\"{:#?}\", meta.parse().unwrap());\n```\n\n```text\n(\n    {\n        \"author\": String(\n            \"mrxiaozhuox\u003cmrxzx.info@gmail.com\u003e\",\n        ),\n        \"tags\": Array(\n            [\n                \"post\",\n                \"test\",\n            ],\n        ),\n        \"released\": Bool(\n            false,\n        ),\n        \"title\": String(\n            \"Hello World\",\n        ),\n    },\n    \"\\n# This is my first post!\\n\\nHello World!!\\n\",\n),\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrxiaozhuox%2Fmarkdown-meta-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrxiaozhuox%2Fmarkdown-meta-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrxiaozhuox%2Fmarkdown-meta-parser/lists"}