{"id":393,"date":"2020-01-25T20:11:47","date_gmt":"2020-01-25T11:11:47","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=393"},"modified":"2020-01-25T20:13:45","modified_gmt":"2020-01-25T11:13:45","slug":"html-markdown-%e3%81%ab%e7%94%bb%e5%83%8f%e3%82%92%e5%9f%8b%e3%82%81%e8%be%bc%e3%82%80%e3%81%ae%e3%82%92%e7%b0%a1%e5%8d%98%e3%81%ab%e3%81%99%e3%82%8b%e3%82%af%e3%82%a4%e3%83%83%e3%82%af%e3%82%a2","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/393.html","title":{"rendered":"HTML, Markdown \u306b\u753b\u50cf\u3092\u57cb\u3081\u8fbc\u3080\u306e\u3092\u7c21\u5358\u306b\u3059\u308b\u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u305f"},"content":{"rendered":"

\u306f\u3058\u3081\u306b<\/h2>\n

\u5c0f\u3055\u3044\u753b\u50cf\u3060\u3063\u305f\u308a\u3001Markdown \u3067\u30d1\u30b9\u3092\u5165\u308c\u305f\u304f\u306a\u3044\u3068\u304d\u306e\u305f\u3081\u306b\u3001\u753b\u50cf\u3092 Base64 \u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u57cb\u3081\u8fbc\u3081\u308b\u3088\u3046\u306b\u3059\u308b Mac \u306e\u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u4f7f\u3044\u65b9<\/h2>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n

\u3053\u3061\u3089<\/a> \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u89e3\u51cd\u5f8c\u3001 \u57cb\u3081\u8fbc\u307f\u5f62\u5f0f\u306b\u5909\u63db.workflow<\/code> \u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u4f7f\u3044\u65b9<\/h3>\n

Finder \u3067\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u5f8c\u3001\u53f3\u30af\u30ea\u30c3\u30af > \u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3 > \u57cb\u3081\u8fbc\u307f\u5f62\u5f0f\u306b\u5909\u63db \u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u5b9f\u884c\u7d50\u679c\u306f\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3055\u308c\u305f\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8cbc\u308a\u4ed8\u3051\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

\"\"<\/p>\n

\u4f5c\u308a\u65b9\u306b\u3064\u3044\u3066<\/h2>\n

\u4f7f\u3044\u305f\u3044\u3060\u3051\u306e\u4eba\u306f\u7279\u306b\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u8a73\u7d30\u306b\u3064\u3044\u3066\u3067\u3059\u3002
\n\u4e00\u5fdc\u3001
GitHub \u30ea\u30dd\u30b8\u30c8\u30ea<\/a> \u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n

Automator \u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3<\/h3>\n

\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f Automator \u306e\u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u3057\u3066\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

Automator \u306f macOS \u3067\u8272\u3005\u3068\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u3092\u4f5c\u308c\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<\/p>\n

\u305d\u306e\u4e2d\u3067\u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u3044\u3046\u53f3\u30af\u30ea\u30c3\u30af\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5b9f\u884c\u3067\u304d\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308a\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u30af\u30a4\u30c3\u30af\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u306f macOS \u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307b\u304b\u3001AppleScript \u3084 JavaScript\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002
\n\u4eca\u56de\u306f\u3053\u306e\u4e2d\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff08 Z Shell \uff09\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

Bash \u3067\u3082\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u65b0\u306e macOS \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u304c Z Shell \u306a\u306e\u3067 Z Shell \u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u30b3\u30de\u30f3\u30c9<\/h3>\n

\u4e2d\u8eab\u306f Base64 \u306b\u3059\u308b\u305f\u3081\u306e base64<\/code> \u3068\u3001\u6539\u884c\u6587\u5b57\u3092\u6d88\u3059\u305f\u3081 tr<\/code> \u3001\u66f8\u304d\u51fa\u3059\u6587\u5b57\u5217\u3092\u51fa\u529b\u3059\u308b\u305f\u3081\u306e echo<\/code> \u3068\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u306e pbcopy<\/code> \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u8a00\u8449\u3067\u66f8\u304f\u3068\u8907\u96d1\u305d\u3046\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a1\u884c\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n

echo \\<img\\ src=\\"data:image\/png\\;base64,$(base64 $1)\\"\\> | tr -d '\\n' | pbcopy<\/code><\/pre>\n

\u3053\u308c\u3060\u3051\u3067\u3001\u3067\u304d\u3066\u3044\u307e\u3059\u3002
\n\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u3069\u304b\u3089\u5b9f\u884c\u3059\u308b\u306b\u306f\u5f15\u6570\u306e $1<\/code> \u3092\u753b\u50cf\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306b\u3059\u308c\u3070\u52d5\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u304a\u308f\u308a\u306b<\/h2>\n

\u306f\u3058\u3081\u3066 Automator \u306e\u30a2\u30af\u30b7\u30e7\u30f3\u516c\u958b\u3059\u308b\u3093\u3067\u3059\u3051\u3069\u3001\u516c\u958b\u306e\u4ed5\u65b9\u3053\u308c\u3067\u3044\u3044\u306e\u304b\u306a\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"

\u306f\u3058\u3081\u306b \u5c0f\u3055\u3044\u753b\u50cf\u3060\u3063\u305f\u308a\u3001Markdown \u3067\u30d1\u30b9\u3092\u5165\u308c\u305f\u304f\u306a\u3044\u3068\u304d\u306e\u305f\u3081\u306b\u3001\u753b\u50cf\u3092 Base6…<\/p>\n","protected":false},"author":1,"featured_media":395,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[35,32],"_links":{"self":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/393"}],"collection":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":0,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media\/395"}],"wp:attachment":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}