{"id":21279028,"url":"https://github.com/lostatc/markdown.css","last_synced_at":"2025-03-15T13:42:25.168Z","repository":{"id":257265326,"uuid":"812651929","full_name":"lostatc/markdown.css","owner":"lostatc","description":"Style sheets for rendering Markdown as a pretty PDF","archived":false,"fork":false,"pushed_at":"2024-11-28T04:21:44.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T03:46:03.569Z","etag":null,"topics":["markdown","pandoc","weasyprint"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/lostatc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-09T13:58:07.000Z","updated_at":"2024-11-28T04:21:47.000Z","dependencies_parsed_at":"2024-09-15T16:29:01.154Z","dependency_job_id":"0f7591fd-36d4-4df4-bf01-6d27b4713676","html_url":"https://github.com/lostatc/markdown.css","commit_stats":null,"previous_names":["lostatc/markdown.css"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fmarkdown.css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fmarkdown.css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fmarkdown.css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostatc%2Fmarkdown.css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostatc","download_url":"https://codeload.github.com/lostatc/markdown.css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243738955,"owners_count":20339997,"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":["markdown","pandoc","weasyprint"],"created_at":"2024-11-21T10:18:23.245Z","updated_at":"2025-03-15T13:42:25.143Z","avatar_url":"https://github.com/lostatc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown.css\n\nThis repository contains a collection of CSS stylesheets for rendering markdown\nfiles as pretty PDFs via Pandoc/WeasyPrint.\n\nTo render a markdown file with the Beryl theme using Pandoc:\n\n```shell\npandoc --pdf-engine weasyprint --css ./themes/beryl.css -o output.pdf input.md\n```\n\n*WeasyPrint is the default PDF engine as of Pandoc 3.4. If you're running\nPandoc 3.4 or higher, you can omit the `--pdf-engine weasyprint` parameter.*\n\n## Themes\n\nBelow are examples of each theme provided in this repository.\n\n### Beryl\n\n- [Headings, inline markup, blockquotes, lists](./examples/beryl-typography.png)\n- [Code blocks, tables](./examples/beryl-data.png)\n- [Callouts](./examples/beryl-callouts.png)\n\n### Stain\n\n- [Headings, inline markup, blockquotes, lists](./examples/stain-typography.png)\n- [Code blocks, tables](./examples/stain-data.png)\n\n### Mark\n\n- [Headings, inline markup, blockquotes, lists](./examples/mark-typography.png)\n- [Code blocks, tables](./examples/mark-data.png)\n\n### Lotus\n\n- [Headings, inline markup, blockquotes, lists](./examples/lotus-typography.png)\n- [Code blocks, tables](./examples/lotus-data.png)\n\n## Callouts\n\nThe Beryl theme supports callouts, implemented entirely in CSS.\n\n- [Markdown syntax example](./examples/beryl-callouts.md)\n- [Generated PDF example](./examples/beryl-callouts.png)\n\n## Page layout\n\nThese stylesheets use US Letter size pages by default. You can configure the\npage size and margins by modifying the `@page` rule near the top of each CSS\nfile.\n\nTo use A4 size pages instead:\n\n```css\n@page {\n  size: A4;\n  margin: 0.5in;\n  background-color: var(--bg-color);\n}\n```\n\n## Generating examples\n\nThe example images in this repo are generated using the\n[Nushell](https://www.nushell.sh/) script\n[./render-examples.nu](./render-examples.nu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostatc%2Fmarkdown.css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostatc%2Fmarkdown.css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostatc%2Fmarkdown.css/lists"}