{"id":19761202,"url":"https://github.com/falkz/md.html","last_synced_at":"2026-05-07T19:01:48.012Z","repository":{"id":115191105,"uuid":"248573301","full_name":"FalkZ/md.html","owner":"FalkZ","description":"Browser compatible markdown without compilation","archived":false,"fork":false,"pushed_at":"2020-11-25T10:22:32.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T23:27:31.879Z","etag":null,"topics":["html","markdown","preview","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://unpkg.com/md.html.js@0.0.7/demo/md.html","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FalkZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-19T18:12:23.000Z","updated_at":"2020-11-25T10:22:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4ea695a-8849-4303-af0b-5a9b0070291b","html_url":"https://github.com/FalkZ/md.html","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/FalkZ%2Fmd.html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fmd.html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fmd.html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FalkZ%2Fmd.html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FalkZ","download_url":"https://codeload.github.com/FalkZ/md.html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241094030,"owners_count":19908626,"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":["html","markdown","preview","syntax-highlighting"],"created_at":"2024-11-12T03:39:58.461Z","updated_at":"2026-05-07T19:01:47.943Z","avatar_url":"https://github.com/FalkZ.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# md.html\n\n#### Browser compatible markdown without compilation\n\n## Features\n\n- **no compilation** required\n- **syntax highlighting** out of the box\n- **single file** for styles and markup\n- **loading on demand**: \u003cbr\u003e loads highlighting and language support only when needed\n- **progressive loading**: \u003cbr\u003e loads content first, for fast access over slow networks\n\n## Getting Started\n\n### Document head\n\nJust add the `md.html.js` script:\n\n```html\n\u003cscript src=\"https://unpkg.com/md.html.js@0.0.5\" type=\"module\"\u003e\u003c/script\u003e\n```\n\n### Document body\n\nNow you can write normal markdown inside the template tag:\n\n```markdown\n\u003ctemplate\u003e\n\n  # Title\n\n  Write markdown here...\n    \n    ```javascript\n    // with syntax highlighting\n    ```\n\n\u003c/template\u003e\n```\n\n### Styles\n\nJust add styles to the head, as you normally would:\n\n```css\n\u003cstyle\u003e\n  body {\n    font-family: 'Sen', sans-serif;\n    max-width: 640px;\n    padding: 10px;\n    margin: 0 auto;\n    font-size: 18px;\n  }\n\u003c/style\u003e\n```\n\n### Syntax Highlighting\nThe default colors of the syntax highlighting can be changed like so\n\n```css\ncode {\n  --base-color: #5c6e74;\n  --comment-color: #93a1a1;\n  --punctuation-color: #999;\n  --property-color: #905;\n  --selector-color: #690;\n  --operator-color: #a67f59;\n  --variable-color: #e90;\n  --keyword-color:  #07a;\n  --function-color: #dd4a68; \n}\n```\n\n\n### Demo\n\nHere is the [demo page](https://unpkg.com/md.html.js/demo/md.html). If you want to edit it just right click `show source` to get your own copy.\n\n## Editing\n\nFor easy editing in VSCode use the following settings:\n\n```json\n{\n  \"files.associations\": {\n  \"*.md.html\": \"markdown\"\n  },\n  \"[markdown]\": {\n    \"editor.wordWrap\": false\n  }\n}\n```\n\nand of course the corresponding file extension `.md.html` for your files.\n\n--- \ncreated with [md.html](https://unpkg.com/md.html.js/demo/md.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkz%2Fmd.html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffalkz%2Fmd.html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalkz%2Fmd.html/lists"}