{"id":13455266,"url":"https://github.com/nihaojob/markdown-css-smartisan","last_synced_at":"2025-10-04T10:30:56.124Z","repository":{"id":45525338,"uuid":"348151574","full_name":"nihaojob/markdown-css-smartisan","owner":"nihaojob","description":"按照锤子便签调整的markdown-css 主题。","archived":false,"fork":true,"pushed_at":"2022-09-24T11:56:54.000Z","size":2776,"stargazers_count":323,"open_issues_count":0,"forks_count":45,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T04:45:14.630Z","etag":null,"topics":["markdown-css","markdown-theme"],"latest_commit_sha":null,"homepage":"https://nihaojob.github.io/markdown-css-smartisan/","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sindresorhus/github-markdown-css","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nihaojob.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":"2021-03-15T23:27:20.000Z","updated_at":"2024-12-30T12:19:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nihaojob/markdown-css-smartisan","commit_stats":null,"previous_names":["nihaojob/github-markdown-css-smartisan"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihaojob%2Fmarkdown-css-smartisan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihaojob%2Fmarkdown-css-smartisan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihaojob%2Fmarkdown-css-smartisan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihaojob%2Fmarkdown-css-smartisan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihaojob","download_url":"https://codeload.github.com/nihaojob/markdown-css-smartisan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235238059,"owners_count":18958041,"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-css","markdown-theme"],"created_at":"2024-07-31T08:01:03.185Z","updated_at":"2025-10-04T10:30:50.766Z","avatar_url":"https://github.com/nihaojob.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# markdown-css-smartisan\n\n\u003e 一个基于锤子便签的markdown主题。\n\n[体验编辑器](https://nihaojob.github.io/markdown-css-smartisan/examples/index.html)\n[\u003cimg src=\"https://raw.githubusercontent.com/nihaojob/markdown-css-smartisan/main/editor.png\" width=\"100%\"\u003e](https://nihaojob.github.io/markdown-css-smartisan/examples/index.html)\n\nMarkdown 主题\n[\u003cimg src=\"https://nihaojob.github.io/markdown-css-smartisan/demo.png\" width=\"100%\"\u003e](https://nihaojob.github.io/markdown-css-smartisan)\n\n\n## [Demo](https://nihaojob.github.io/markdown-css-smartisan)\n可以[体验编辑器](https://nihaojob.github.io/markdown-css-smartisan/examples/index.html)\n, 或[预览](https://nihaojob.github.io/markdown-css-smartisan)我们的主题，和[锤子便签](https://yun.smartisan.com/apps/note/md.html)对比一下。\n\n## Install\n\nDownload [manually](https://github.com/nihaojob/https://nihaojob.github.io/markdown-css-smartisan/blob/main/github-markdown.css), from [CDNJS](https://cdn.jsdelivr.net/npm/markdown-css-smartisan/github-markdown.css), or with npm or yarn:\n\n```shell\n# use npm\n$ npm install markdown-css-smartisan\n# use yarn\n$ yarn add markdown-css-smartisan\n```\n\n## Usage\n\n\n\n```bash\nimport 'markdown-css-smartisan'\n```\nImport the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it.\n\n```html\n\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/npm/markdown-css-smartisan/github-markdown.css\" /\u003e\n\u003cstyle\u003e\n.markdown-body {\n  width: 80%;\n  margin: 0 auto;\n}\n\n\u003c/style\u003e\n\u003carticle class=\"markdown-body\"\u003e\n\t\u003ch1\u003eUnicorns\u003c/h1\u003e\n\t\u003cp\u003eAll the things\u003c/p\u003e\n\u003c/article\u003e\n```\n\nIf you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown).\n\n## How\n\nSee [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own.\n\n\u003c!-- ## Dev\n\nRun `npm run make` to update the CSS. --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihaojob%2Fmarkdown-css-smartisan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihaojob%2Fmarkdown-css-smartisan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihaojob%2Fmarkdown-css-smartisan/lists"}