{"id":21161573,"url":"https://github.com/loctools/perl-loctools-markdown","last_synced_at":"2025-03-14T16:11:43.530Z","repository":{"id":146544611,"uuid":"328540335","full_name":"loctools/perl-loctools-markdown","owner":"loctools","description":"Loctools::Markdown Perl module","archived":false,"fork":false,"pushed_at":"2021-02-02T02:08:10.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T09:29:07.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/loctools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-11T03:40:25.000Z","updated_at":"2021-02-02T02:08:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2c68f86-dd4e-42ca-b0e5-1d2ebf1216ee","html_url":"https://github.com/loctools/perl-loctools-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loctools","download_url":"https://codeload.github.com/loctools/perl-loctools-markdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606957,"owners_count":20318314,"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","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-11-20T13:15:06.596Z","updated_at":"2025-03-14T16:11:43.525Z","avatar_url":"https://github.com/loctools.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loctools::Markdown\n\nA zero-dependency Markdown parser/builder Perl library. Built primarily for [Serge](https://serge.io/) and has localization as its primary focus. The library consists of the following modules and command-line tools:\n\n## Loctools::Markdown::Parser\nThis module parses Markdown into an AST representation that is easy to iterate over and modify.\n\n## Loctools::Markdown::Builder::MD\n\nThis module takes the same AST representation and generates Markdown documents, preserving as much original formatting as possible.\n\n## loctools-md2json\n\nThis CLI tool converts Markdown into a JSON representation of the document. Usage:\n\n    loctools-md2json \u003c infile.md \u003e outfile.json\n\n## loctools-json2md\n\nThis CLI tool converts a JSON representation of the document back into Markdown. Usage:\n\n    loctools-json2md \u003c infile.json \u003e outfile.md\n\n## Installation\n\n    $ cpan Loctools::Markdown\n\n## Usage\n\n```perl\nuse Loctools::Markdown::Builder::MD;\nuse Loctools::Markdown::Parser;\n\n# parse Markdown text\nmy $parser = Loctools::Markdown::Parser-\u003enew;\nmy $tree = $parser-\u003eparse($markdown_text);\n\n# modify the tree\n# ...\n\n# generate Markdown text\nmy $builder = Loctools::Markdown::Builder::MD-\u003enew;\nmy $markdown_output = $builder-\u003ebuild($tree);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floctools%2Fperl-loctools-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floctools%2Fperl-loctools-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floctools%2Fperl-loctools-markdown/lists"}