{"id":65241,"date":"2018-11-30T09:14:42","date_gmt":"2018-11-30T00:14:42","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=65241"},"modified":"2018-11-30T09:14:42","modified_gmt":"2018-11-30T00:14:42","slug":"mdless","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/mdless\/","title":{"rendered":"mdless - \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5229\u7528\u3067\u304d\u308bRuby\u88fd\u306eMarkdown\u30d3\u30e5\u30fc\u30a2\u30fc"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/11\/s_20181128_213811.jpg\" alt=\"S 20181128 213811\" title=\"s_20181128_213811.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>GitHub\u3067\u3082\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u304a\u306a\u3058\u307f\u306e\u8efd\u91cf\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u8a00\u8a9e\u300cMarkdown\u300d\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u6574\u5f62\u5f8c\u306e\u898b\u305f\u76ee\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001Markdown\u30d3\u30e5\u30fc\u30a2\u30fc\u3068\u547c\u3070\u308c\u308b\u30d3\u30e5\u30fc\u30a2\u30fc\u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/ttscoff\/mdless\">mdless<\/a>\u300d\u3082\u305d\u306e\u3088\u3046\u306aMarkdown\u30d3\u30e5\u30fc\u30a2\u30fc\u306e\u4e00\u7a2e\u3067\u3059\u3002\u305f\u3060\u3057GUI\u30a2\u30d7\u30ea\u3067\u306f\u306a\u304f\u30bf\u30fc\u30df\u30ca\u30eb\u5185\u3067\u5229\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30bf\u30a4\u30d7\u306e\u30d3\u30e5\u30fc\u30a2\u30fc<\/a>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GUI\u30a2\u30d7\u30ea\u307b\u3069\u7f8e\u3057\u304fMarkdown\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306a\u3069\u3001\u898b\u305f\u76ee\u3092\u3056\u3063\u304f\u308a\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>pipe\u306b\u5bfe\u5fdc\u3057\u305f\u7d44\u307f\u8fbc\u307f\u306e\u30da\u30fc\u30b8\u30e3\u30fc\u6a5f\u80fd<\/li>\n<li>\u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u5bfe\u5fdc<\/li>\n<li>\u5927\u90e8\u5206\u306e\u8981\u7d20\u306eMarkdown\u69cb\u6587\u306e\u8272\u5206\u3051<\/li>\n<li>\u7a7a\u767d\u306e\u6b63\u898f\u5316\u3068\u30ea\u30f3\u30af\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/li>\n<li>\u7ae0\u3054\u3068\u306b\u811a\u6ce8\u306e\u8868\u793a<\/li>\n<li>iTerm2 2.9\u4ee5\u964d\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u30a4\u30f3\u30e9\u30a4\u30f3\u30a4\u30e1\u30fc\u30b8\u304c\u8868\u793a\u53ef\u80fd<\/li>\n<li>pygmentize\u304c\u5229\u7528\u3067\u304d\u308b\u5834\u5408\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u306b\u5bfe\u5fdc<\/li>\n<li>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u898b\u51fa\u3057\u306e\u4e00\u89a7\u8868\u793a<\/li>\n<li>\u898b\u51fa\u3057\u306b\u57fa\u3065\u3044\u3066\u6587\u66f8\u306e\u5358\u4e00\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>mdless\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>mdless\u306fRuby\u88fd\u306e\u30c4\u30fc\u30eb\u306a\u306e\u3067gem\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\ngem install mdless\n<\/pre>\n<p>\u4f7f\u7528\u65b9\u6cd5\u306f\u300cmdless [\u30aa\u30d7\u30b7\u30e7\u30f3] \u30d1\u30b9\u300d\u307e\u305f\u306f\u300ccat \u30d1\u30b9 | mdless\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u6b21\u306e\u5185\u5bb9\u306eMarkdown\u30d5\u30a1\u30a4\u30eb(samle.md)\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u2026<\/p>\n<pre># header1\n## header2\n### header3\n\n\u7b87\u6761\u66f8\u304d\n\n-\u9805\u76ee1\n  -\u3053\u308c\u3082\n-\u9805\u76ee2\n-\u9805\u76ee3\n\n\u30c6\u30fc\u30d6\u30eb\n\n| column1 | column2 |\n| -- | -- |\n| \u30bb\u30eb1 | \u30bb\u30eb2 |\n| \u30bb\u30eb3 | \u30bb\u30eb4 |\n\n\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\n\n``` shell\ngem install sample\n```<\/pre>\n<p>\u300cmdless sample.md\u300d\u3068\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/11\/s_20181128_214112.jpg\" alt=\"S 20181128 214112\" title=\"s_20181128_214112.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>\u25b2\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3067\u8272\u3092\u4f7f\u3063\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u660e\u308b\u3044\u80cc\u666f\u306e\u5834\u5408\u898b\u3065\u3089\u3044\u914d\u8272\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u8272\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30c6\u30fc\u30de\u3092\u30c0\u30fc\u30af\u7cfb\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\u306f\u300cmdless --help\u300d\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>-s, --section=TITLE              Output only a headline-based section of \n                                 the input (numeric based on --list output)\n-w, --width=COLUMNS              Column width to format for (default terminal width)\n-p, --[no-]pager                 Formatted output to pager (default on)\n-P                               Disable pager (same as --no-pager)\n-c, --[no-]color                 Colorize output (default on)\n-l, --list                       List headers in document and exit\n-i, --images=TYPE                Include [local|remote (both)] images in \n                                 output (requires imgcat and iTerm2, \n                                 default NONE)\n-I, --all-images                 Include local and remote images in output \n-h, --help                       Display this screen\n-v, --version                    Display version numbe\n<\/pre>\n<p>\u8272\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\nmdless --no-color sample.md\n<\/pre>\n<p>\u307e\u305fiTerm2\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u753b\u50cf\u3092\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\nmdless --images=local sample.md\n<\/pre>\n<p>\u306a\u304aiTerm2\u3067\u753b\u50cf\u3092\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u3001imgcat\u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092iTerm2\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30d1\u30b9\u306b\u8a2d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306fiTerm2\u306e<a href=\"https:\/\/www.iterm2.com\/documentation-images.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>mdless\u3092\u4f7f\u7528\u3059\u308c\u3070Markdown\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u7d20\u65e9\u304f\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002GUI\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u305f\u3081\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u4f7f\u3063\u3066\u3082\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub\u3067\u3082\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u304a\u306a\u3058\u307f\u306e\u8efd\u91cf\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u8a00\u8a9e\u300cMarkdown\u300d\u3002 \u4e00\u822c\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u6574\u5f62\u5f8c\u306e\u898b\u305f\u76ee\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001Markdown\u30d3\u30e5\u30fc\u30a2\u30fc\u3068\u547c\u3070\u308c\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":65271,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[2138,154],"class_list":["post-65241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-markdown","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/65241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=65241"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/65241\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/65271"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=65241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=65241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=65241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}