{"id":30718011,"url":"https://github.com/jean-tinland/html-markdown.css","last_synced_at":"2025-09-03T09:06:49.102Z","repository":{"id":309923284,"uuid":"1038042902","full_name":"Jean-Tinland/html-markdown.css","owner":"Jean-Tinland","description":"An HTML-to-Markdown CSS framework","archived":false,"fork":false,"pushed_at":"2025-08-15T07:47:09.000Z","size":258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T02:35:37.089Z","etag":null,"topics":["css","framework","html","markdown"],"latest_commit_sha":null,"homepage":"https://www.jeantinland.com/toolbox/html-markdown-css/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jean-Tinland.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-08-14T14:25:02.000Z","updated_at":"2025-08-22T07:09:11.000Z","dependencies_parsed_at":"2025-08-14T16:35:16.994Z","dependency_job_id":null,"html_url":"https://github.com/Jean-Tinland/html-markdown.css","commit_stats":null,"previous_names":["jean-tinland/html-markdown.css"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jean-Tinland/html-markdown.css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jean-Tinland%2Fhtml-markdown.css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jean-Tinland%2Fhtml-markdown.css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jean-Tinland%2Fhtml-markdown.css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jean-Tinland%2Fhtml-markdown.css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jean-Tinland","download_url":"https://codeload.github.com/Jean-Tinland/html-markdown.css/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jean-Tinland%2Fhtml-markdown.css/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273417623,"owners_count":25101886,"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-09-03T02:00:09.631Z","response_time":76,"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":["css","framework","html","markdown"],"created_at":"2025-09-03T09:06:48.083Z","updated_at":"2025-09-03T09:06:49.090Z","avatar_url":"https://github.com/Jean-Tinland.png","language":"HTML","readme":"# html-markdown.css\n\nThis simple CSS library provides a basic stylesheet making simple HTML elements look like Markdown.\n\nIt uses CSS `::before` and `::after` pseudo-elements to add the Markdown-like syntax around the elements.\n\nEverything can be customized with CSS variables. Dark and light modes are supported by default thanks to the `light-dark()` CSS function and the `color-scheme` property.\n\nChangelog is available [here](https://github.com/Jean-Tinland/html-markdown.css/blob/main/CHANGELOG.md).\n\n## Preview\n\n![Preview of html-markdown.css](https://raw.githubusercontent.com/Jean-Tinland/html-markdown.css/refs/heads/main/preview.jpeg)\n\n## Usage\n\nLoad the `html-markdown.css` stylesheet in your HTML file.\n\n```html\n\u003c!-- Minified version (2,25ko gzip, 3,87 Ko) --\u003e\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/html-markdown.css@latest/build/html-markdown.min.css\" /\u003e\n\n\u003c!-- Unminified version (2,35ko gzip, 4,58ko) --\u003e\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/html-markdown.css@latest/build/html-markdown.css\" /\u003e\n```\n\nWrap your HTML iside a `main` element if you want to contain your content inside a centered layout.\n\n```html\n\u003cmain\u003e\n  \u003ch1\u003eTitle\u003c/h1\u003e\n  \u003cp\u003eThis is a paragraph with \u003cstrong\u003ebold\u003c/strong\u003e and \u003cem\u003eitalic\u003c/em\u003e text.\u003c/p\u003e\n  \u003c!-- ... --\u003e\n\u003c/main\u003e\n```\n\n## Customization\n\nYou can customize the styles by overriding the CSS variables provided by `html-markdown.css`.\n\nHere are all the available CSS variables:\n\n```css\n:root {\n  --md-layout-width: 800px; /* Width of the main content area */\n  --md-layout-padding: 20px; /* Padding around the main content area */\n  --md-spacing: 1em; /* Spacing between elements */\n\n  /* Font */\n  --md-font-family: monospace; /* Font family for the content */\n  --md-font-size: 16px; /* Base font size */\n  --md-font-weight: 400; /* Base font weight */\n  --md-line-height: 1.65; /* Base line height for better readability */\n\n  /* Colors */\n  --md-background-light: #f8f8f2; /* Light background color */\n  --md-background-dark: #1e1e1e; /* Dark background color */\n  --md-background: light-dark(\n    var(--md-background-light),\n    var(--md-background-dark)\n  ); /* Background color that adapts to light/dark mode */\n  --md-foreground-light: #1e1e1e; /* Light foreground color */\n  --md-foreground-dark: #f8f8f2; /* Dark foreground color */\n  --md-foreground: light-dark(\n    var(--md-foreground-light),\n    var(--md-foreground-dark)\n  ); /* Foreground color that adapts to light/dark mode */\n  --md-grey: #7e7e7e; /* Neutral grey color */\n  --md-red: #e78482; /* Red color */\n  --md-green: #8fc8bb; /* Green color */\n  --md-yellow: #e0b972; /* Yellow color */\n  --md-orange: #ffb374; /* Orange color */\n  --md-blue: #6db3ce; /* Blue color */\n  --md-magenta: #ad82cb; /* Magenta color */\n  --md-cyan: #2fc2c3; /* Cyan color */\n\n  /* Content color customization */\n  --md-heading-color: var(--md-grey); /* Color for headings */\n  --md-strikethrough-color: var(--md-grey); /* Color for strikethrough text */\n  --md-code-color: var(--md-grey); /* Color for inline code */\n  --md-blockquote-color: var(--md-grey); /* Color for blockquotes */\n  --md-bold-color: var(--md-magenta); /* Color for bold text */\n  --md-italic-color: var(--md-cyan); /* Color for italic text */\n  --md-anchor-color: var(--md-yellow); /* Color for anchor links */\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjean-tinland%2Fhtml-markdown.css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjean-tinland%2Fhtml-markdown.css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjean-tinland%2Fhtml-markdown.css/lists"}