{"id":41,"date":"2016-06-22T22:08:00","date_gmt":"2016-06-23T03:08:00","guid":{"rendered":"http:\/\/varunpramanik.com\/chronicles\/?p=41"},"modified":"2016-06-22T22:18:03","modified_gmt":"2016-06-23T03:18:03","slug":"markdown-tables-in-ulysses-on-ios","status":"publish","type":"post","link":"https:\/\/varunpramanik.com\/chronicles\/2016\/06\/22\/markdown-tables-in-ulysses-on-ios\/","title":{"rendered":"Markdown Tables in Ulysses on iOS"},"content":{"rendered":"<p>After hearing much about Ulysses from people whose opinions I trust, namely <a href=\"https:\/\/www.twitter.com\/viticci\">Federico Viticci<\/a>, I decided to give it a try for a writing project. This post is a slight <span style=\"text-decoration: line-through;\">distraction<\/span>\u00a0aside\u00a0in the midst of that project.<\/p>\n<p>As I was writing, I figured it would be best to lay out some data in a table. Unfortunately, the Markdown variants supported by Ulysses don\u2019t support a <a href=\"https:\/\/rawgit.com\/fletcher\/human-markdown-reference\/master\/index.html#simple_table\">MultiMarkdown-like syntax for tables<\/a>.<\/p>\n<p>That\u2019s where iOS comes in. More specifically, that\u2019s where <a href=\"https:\/\/workflow.is\/\">Workflow<\/a> shines. I figured I could meet my needs using a combination of a Workflow action extension and Ulysses\u2019 Markdown XL raw source syntax (~\u2026~). <a href=\"https:\/\/workflow.is\/workflows\/5b309b68cf3a4906934e28a05409122d\">The Workflow I created<\/a> takes Markdown-formatted text, converts it to HTML and places it on my clipboard. While I aim to use it to create HTML tables, you could technically use this workflow in any instance where you need to convert Markdown to HTML via an action extension.<\/p>\n<p>Here\u2019s how it looks:<\/p>\n<ol>\n<li>I create a MultiMarkdown-formatted table.<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-35 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of a sheet in Ulysses with a block of MultiMarkdown table-formatted text.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1377.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<p><\/p>\n<li> I select the block of text and hit the share button.<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-36 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of a sheet in Ulysses with a block of MultiMarkdown table-formatted text selected, displaying the iOS text action pop-up.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1378.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<p><\/p>\n<li> I run the workflow.<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-37 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of the Workflow action extension running my workflow to convert the MultiMarkdown-formatted text to HTML code.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1379.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<p><\/p>\n<li> I paste and replace the text with the HTML code on my clipboard.<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of a block of HTML table code, which was pasted from the clipboard to replace the MultiMarkdown-formatted table text.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1382.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<p><\/p>\n<li> I wrap the HTML code with Ulysses\u2019 raw source syntax (~\u2026~)<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of HTML table code wrapped in Ulysses\u2019 syntax for raw source.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1383.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<p><\/p>\n<li> Voil\u00e0.<br \/>\n<br \/>\n<a href=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40 size-large\" src=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?resize=840%2C630\" width=\"840\" height=\"630\" alt = \"Screenshot of a formatted HTML preview of the Ulysses sheet, displaying the table code rendered appropriately.\" srcset=\"https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/varunpramanik.com\/chronicles\/wp-content\/uploads\/2016\/06\/img_1384.png?w=1680 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>After hearing much about Ulysses from people whose opinions I trust, namely Federico Viticci, I decided to give it a try for a writing project. This post is a slight distraction\u00a0aside\u00a0in the midst of that project. As I was writing, I figured it would be best to lay out some data in a table. Unfortunately, &hellip; <a href=\"https:\/\/varunpramanik.com\/chronicles\/2016\/06\/22\/markdown-tables-in-ulysses-on-ios\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Markdown Tables in Ulysses on iOS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3,8],"tags":[9,11,10,12],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-ios","category-workflow","tag-markdown","tag-multimarkdown","tag-ulysses","tag-workflow"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7tP59-F","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":6,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/posts\/41\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/varunpramanik.com\/chronicles\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}