{"id":13564070,"url":"https://github.com/muesli/marky","last_synced_at":"2025-04-30T13:20:49.776Z","repository":{"id":57538437,"uuid":"281592289","full_name":"muesli/marky","owner":"muesli","description":"Generate markdown programmatically","archived":false,"fork":false,"pushed_at":"2020-07-22T06:41:53.000Z","size":15,"stargazers_count":44,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T08:04:05.749Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/muesli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"muesli"}},"created_at":"2020-07-22T06:17:39.000Z","updated_at":"2024-06-14T01:20:11.000Z","dependencies_parsed_at":"2022-09-07T17:35:42.288Z","dependency_job_id":null,"html_url":"https://github.com/muesli/marky","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/muesli%2Fmarky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fmarky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fmarky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fmarky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muesli","download_url":"https://codeload.github.com/muesli/marky/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242656037,"owners_count":20164431,"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":["hacktoberfest"],"created_at":"2024-08-01T13:01:26.262Z","updated_at":"2025-03-09T06:33:07.343Z","avatar_url":"https://github.com/muesli.png","language":"Go","funding_links":["https://github.com/sponsors/muesli"],"categories":["Go"],"sub_categories":[],"readme":"# marky\n\nGenerate markdown programmatically\n\n[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/muesli/marky)\n[![Build Status](https://github.com/muesli/marky/workflows/build/badge.svg)](https://github.com/muesli/marky/actions)\n[![Coverage Status](https://coveralls.io/repos/github/muesli/marky/badge.svg?branch=master)](https://coveralls.io/github/muesli/marky?branch=master)\n[![Go ReportCard](http://goreportcard.com/badge/muesli/marky)](http://goreportcard.com/report/muesli/marky)\n\n## Usage\n\n```go\nd := NewDocument().\n    Add(Heading{\n        Caption: \"This is marky\",\n        Level:   1,\n    }).\n    Add(NewParagraph().\n        Add(Text{\n            Text: \"I really like using Markdown.\",\n        }),\n    ).\n    Add(NewParagraph().\n        Add(Image{\n            Text:  \"An Image\",\n            Image: \"/image.png\",\n        }),\n    )\n\nioutil.WriteFile(\"README.md\", []byte(d.String()), 0644)\n```\n\n### Links\n\n```go\nd.Add(Link{\n    Text: \"A Link\",\n    URL:  \"https://a.url\",\n})\n```\n\n### Images\n\n```go\nd.Add(Image{\n    Text:  \"An Image\",\n    Image: \"/image.png\",\n    URL: \"https://a.url\",\n})\n```\n\n### Quotes\n\n```go\ne := Quote{}\ne.Add(Text{\n    Text: \"Dorothy followed her through many of the beautiful rooms in her castle.\",\n})\nd.Add(e)\n```\n\n### Codeblocks\n\n```go\nd.Add(Code{\n    Source: `echo \"Hello\"\\necho \"World\"`,\n    Language: \"bash\",\n})\n```\n\n### Lists\n\n```go\ne := List{\n    Ordered: true,\n}\ne.Add(Text{\n    Text: \"First Item\",\n}).Add(Text{\n    Text: \"Second Item\",\n})\nd.Add(e)\n```\n\n### Tasks\n\n```go\ne := List{}\ne.Add(Task{\n    Text: \"First Task\",\n}).Add(Task{\n    Text: \"Second Task\",\n    Done: true,\n})\nd.Add(e)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuesli%2Fmarky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuesli%2Fmarky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuesli%2Fmarky/lists"}