{"id":279,"date":"2012-09-08T19:14:30","date_gmt":"2012-09-08T19:14:30","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=279"},"modified":"2019-01-04T16:10:32","modified_gmt":"2019-01-04T16:10:32","slug":"converting-a-snip","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/converting-a-snip\/","title":{"rendered":"Converting a Snip"},"content":{"rendered":"<p>I need to convert my snipsnap snips to wordpress. I therfore need to consider the following things.<!--more--><\/p>\n<ol>\n<li>Headings<\/li>\n<li>Links<\/li>\n<li>Bolds<\/li>\n<li>Italics<\/li>\n<li>Quotes<\/li>\n<li>Lists<\/li>\n<li>Images<\/li>\n<li>HTML Objects<\/li>\n<li>Line Throws<\/li>\n<\/ol>\n<h3>Headings<\/h3>\n<p>Headings, lines start with &#8220;1 &#8221; or &#8220;1.1&#8221;, the ones need to be H3, or the title, and the onedotone need to be H3 or H4, depending on how the one is treated and if there is one.<\/p>\n<h3>Links<\/h3>\n<p>These take the following format<\/p>\n<p style=\"padding-left: 30px;\">{link:flickr pictures|http:\/\/www.flickr.com\/photos\/davelevy\/sets\/72157623287187871\/}<\/p>\n<p>The anchor text is between the colon and the pipe, the URL is between the pipe and the last &#8216;}&#8217;. I need to extract the anchor and the URL and generate an anchor tag.<\/p>\n<p style=\"padding-left: 30px;\">&#8216;&lt; a =HREF=&#8221;&#8216; + $hyperlink + &#8216;&#8221;&gt;&#8217; + $anchortext + &#8216;&lt;\/a&gt;&#8217;<\/p>\n<p>Don&#8217;t forget about the img decorations for the hyperlink.<\/p>\n<p>Don&#8217;t forget about the name only anchors!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I need to convert my snipsnap snips to wordpress. I therfore need to consider the following things.<\/p>\n","protected":false},"author":1,"featured_media":4125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[27,3],"tags":[29,920,911],"class_list":["post-279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-technology","tag-snipsnap","tag-software","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2009\/07\/snipsnap4nulis-w650x200.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":7,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/279\/revisions\/282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/4125"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}