{"id":17088163,"url":"https://github.com/colinmarc/denmark","last_synced_at":"2025-07-09T13:09:25.079Z","repository":{"id":2349867,"uuid":"3312684","full_name":"colinmarc/denmark","owner":"colinmarc","description":"a quick utility that opens markdown files in the browser","archived":false,"fork":false,"pushed_at":"2012-06-23T05:18:07.000Z","size":403,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T16:46:06.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/colinmarc.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}},"created_at":"2012-01-31T07:01:27.000Z","updated_at":"2018-01-02T21:50:05.000Z","dependencies_parsed_at":"2022-07-31T02:38:13.725Z","dependency_job_id":null,"html_url":"https://github.com/colinmarc/denmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colinmarc/denmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinmarc%2Fdenmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinmarc%2Fdenmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinmarc%2Fdenmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinmarc%2Fdenmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinmarc","download_url":"https://codeload.github.com/colinmarc/denmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinmarc%2Fdenmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264465879,"owners_count":23612584,"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":[],"created_at":"2024-10-14T13:36:29.121Z","updated_at":"2025-07-09T13:09:25.054Z","avatar_url":"https://github.com/colinmarc.png","language":"Python","readme":"denmark - open markdown files in your browser\n=============================================\n\nThis is a quick utility that lets you open markdown files in your default web browser:\n\n![markdown!](https://github.com/colinmarc/denmark/blob/master/denmark.png?raw=true)\n\ninstallation\n------------\n\nFirst you need markdown2:\n\n```\n$ sudo pip install markdown2\n```\n\nthen just run `sudo python setup.py install` from the source directory.\n\nusage\n-----\n\nto open a markdown file in your default browser, just do:\n\n```\n$ denmark readme.md\n```\n\nbonus: double click to open\n---------------------------\n\nI've only tested this on ubuntu 11.04.\n\nFirst, you need to create an Overrides.xml file in the mime/packages directory (if you already have an Overrides.xml, you'll have to copy the entry in instead):\n\n```\n$ sudo cat markdown.xml \u003e /usr/share/mime/packages/Overrides.xml\n```\n\nAnd update the mimetypes database:\n\n```\n$ sudo update-mime-database /usr/share/mime\n```\n\nFinally, add a line in your defaults file (again, may differ based on distro):\n\n```\n$ sudo echo \"text/x-web-markdown=denmark.desktop\" \u003e\u003e /etc/gnome/defaults.list\n```\n\nYou'll probably need to re-open nautilus before the changes will take hold, but then you should be able to double click markdown files to open them.\n\nnotes\n-----\n\n* The css I used to make it all pretty is [markdown.css](http://kevinburke.bitbucket.org/markdowncss/). \n* It works by creating temp html files in /tmp or your distro equivalent. In ubuntu, these are cleaned up on startup, but if they're not for you, you might have to clean them up manually. For some reason deleting during the process was too fast for my browser to load the file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinmarc%2Fdenmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinmarc%2Fdenmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinmarc%2Fdenmark/lists"}