{"id":28249,"date":"2020-02-27T17:07:08","date_gmt":"2020-02-27T22:07:08","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=28249"},"modified":"2020-02-27T17:07:34","modified_gmt":"2020-02-27T22:07:34","slug":"markdownattributedstring","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/02\/27\/markdownattributedstring\/","title":{"rendered":"MarkdownAttributedString"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/chockenberry\/MarkdownAttributedString\">Craig Hockenberry<\/a> (<a href=\"https:\/\/twitter.com\/chockenberry\/status\/1233082085658619904\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/chockenberry\/MarkdownAttributedString\">\n<p>This project is an Objective-C category that generates rich text by reading Markdown as the source code. It also allows you to write Markdown using attributed strings. The code only processes link and emphasis span elements in Markdown. There is experimental support for code spans.<\/p>\n<p>[&#8230;]<\/p>\n<p>One of the potential uses I see for this code is with localization. Putting Markdown into your .strings files will be a lot easier than juggling separate RTF files.<\/p>\n<\/blockquote>\n<p>It&rsquo;s just a pair of <tt>.h<\/tt>\/<tt>.m<\/tt> files with no dependencies, and (unlike <code>NSAttributeString<\/code>&rsquo;s HTML converter) it works from any thread.<\/p>","protected":false},"excerpt":{"rendered":"<p>Craig Hockenberry (tweet): This project is an Objective-C category that generates rich text by reading Markdown as the source code. It also allows you to write Markdown using attributed strings. The code only processes link and emphasis span elements in Markdown. There is experimental support for code spans. [&#8230;] One of the potential uses I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-02-27T22:07:11Z","apple_news_api_id":"ca700b83-4db0-4080-bd0c-061ef12b9208","apple_news_api_modified_at":"2020-02-27T22:07:37Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AynALg02wQIC9DAYe8SuSCA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[31,1667,309,30,1666,337,54,74,71],"class_list":["post-28249","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-13","tag-localization","tag-mac","tag-macos-10-15","tag-markdown","tag-objective-c","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=28249"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28249\/revisions"}],"predecessor-version":[{"id":28251,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28249\/revisions\/28251"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=28249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=28249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=28249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}