{"action":"created","issue":{"url":"https://api.github.com/repos/sharkdp/hyperfine/issues/44","repository_url":"https://api.github.com/repos/sharkdp/hyperfine","labels_url":"https://api.github.com/repos/sharkdp/hyperfine/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/sharkdp/hyperfine/issues/44/comments","events_url":"https://api.github.com/repos/sharkdp/hyperfine/issues/44/events","html_url":"https://github.com/sharkdp/hyperfine/issues/44","id":306352355,"number":44,"title":"Export to Markdown","user":{"login":"sharkdp","id":4209276,"avatar_url":"https://avatars2.githubusercontent.com/u/4209276?v=4","gravatar_id":"","url":"https://api.github.com/users/sharkdp","html_url":"https://github.com/sharkdp","followers_url":"https://api.github.com/users/sharkdp/followers","following_url":"https://api.github.com/users/sharkdp/following{/other_user}","gists_url":"https://api.github.com/users/sharkdp/gists{/gist_id}","starred_url":"https://api.github.com/users/sharkdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharkdp/subscriptions","organizations_url":"https://api.github.com/users/sharkdp/orgs","repos_url":"https://api.github.com/users/sharkdp/repos","events_url":"https://api.github.com/users/sharkdp/events{/privacy}","received_events_url":"https://api.github.com/users/sharkdp/received_events","type":"User","site_admin":false},"labels":[{"id":803739896,"url":"https://api.github.com/repos/sharkdp/hyperfine/labels/feature","name":"feature","color":"54f25a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-19T07:02:35Z","updated_at":"2018-03-19T20:09:42Z","closed_at":null,"author_association":"OWNER","body":"Add a `--export-markdown` option in analogy to #41 for CSV and #42 for JSON.\r\n\r\nThe output could look like this:\r\n\r\n``` md\r\n| Benchmark | Mean [ms]   | Min. [ms] | Max. [ms] |\r\n|-----------|-------------|-----------|-----------|\r\n| command 1 | 205.1 ± 1.5 | 201.1     | 207.6     |\r\n| command 2 | 403.5 ± 2.4 | 400.3     | 407.4     |\r\n```\r\n\r\nRendered:\r\n\r\n| Command   | Mean [ms]   | Min. [ms] | Max. [ms] |\r\n|-----------|-------------|-----------|-----------|\r\n| command 1 | 205.1 ± 1.5 | 201.1     | 207.6     |\r\n| command 2 | 403.5 ± 2.4 | 400.3     | 407.4     |\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sharkdp/hyperfine/issues/comments/374354853","html_url":"https://github.com/sharkdp/hyperfine/issues/44#issuecomment-374354853","issue_url":"https://api.github.com/repos/sharkdp/hyperfine/issues/44","id":374354853,"user":{"login":"sharkdp","id":4209276,"avatar_url":"https://avatars2.githubusercontent.com/u/4209276?v=4","gravatar_id":"","url":"https://api.github.com/users/sharkdp","html_url":"https://github.com/sharkdp","followers_url":"https://api.github.com/users/sharkdp/followers","following_url":"https://api.github.com/users/sharkdp/following{/other_user}","gists_url":"https://api.github.com/users/sharkdp/gists{/gist_id}","starred_url":"https://api.github.com/users/sharkdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharkdp/subscriptions","organizations_url":"https://api.github.com/users/sharkdp/orgs","repos_url":"https://api.github.com/users/sharkdp/repos","events_url":"https://api.github.com/users/sharkdp/events{/privacy}","received_events_url":"https://api.github.com/users/sharkdp/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T20:09:42Z","updated_at":"2018-03-19T20:09:42Z","author_association":"OWNER","body":"Using something like https://docs.rs/comrak/0.2.8/comrak/ could work (create an AST that represents the table and pretty-print it via [`format_commonmark`](https://docs.rs/comrak/0.2.8/comrak/fn.format_commonmark.html).\r\n\r\nOn the other hand, maybe the easiest option for now would be to simply `write!` the markdown table by hand. It doesn't necessarily have to look pretty in the source file."}}
{"actor":{"display_login":"sharkdp"}}