<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel rdf:about="https://let.hatelabo.jp/joma/rss">
    <link>https://let.hatelabo.jp/joma/rss</link>
    <description></description>
    <title>Bookmarklets from joma</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/joma/let/gYC-yfWK8PDZaQ"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/joma/let/gYC-yfWK8PDZaQ">
    <link>https://let.hatelabo.jp/joma/let/gYC-yfWK8PDZaQ</link>
    <dc:date>2012-06-02T04:51:39Z</dc:date>
    <description>textileフォーマットのテキストをhtml5slidesにするブックマークレット</description>
    <dc:creator>joma</dc:creator>
    <title>[Let] textile to slides</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fjoma%2Flet%2FgYC-yfWK8PDZaQ.bookmarklet.js%20%28arg%29%22.replace%28%2F%28%5CS%2B%29%5Cs%2B%28%5CS%2A%29%2F%2Cfunction%28s%2Curl%2Carg%29%7Bs%3Ddocument.createElement%28%22script%22%29%3Bs.charset%3D%22utf-8%22%3Bs.src%3Durl%2B%22%3Fs%3D%22%2BencodeURIComponent%28arg%29%3Bdocument.body.appendChild%28s%29%7D%29%3Bvoid%280%29%3B"&gt;textile to slides&lt;/a&gt;&lt;pre&gt;/*
 * @title textile to slides
 * @description textileフォーマットのテキストをhtml5slidesにするブックマークレット
 * @include http://*
 * @license MIT License
 * @require http://www.ben-daglish.net/textile/textile.js
 * @require http://html5slides.googlecode.com/svn/trunk/slides.js
 */

function textiletoslides(){
  var content = document.getElementsByTagName('pre')[0];
  content.innerHTML = convert(content.innerText);
  content.style.display = &amp;quot;none&amp;quot;;

  var slides = document.createElement('section');
  slides.className = &amp;quot;slides layout-regular template-default&amp;quot;;
  document.body.appendChild(slides);

  var article = null;
  while(child = content.childNodes.item()){
    if( [&amp;quot;H1&amp;quot;, &amp;quot;H2&amp;quot;, &amp;quot;H3&amp;quot;].indexOf(child.tagName) &amp;gt; -1 ){ // is H1,2,3
      article = document.createElement('article');
      article.appendChild(child);
      slides.appendChild(article);
    } else {
      if( article == null ){
        article = document.createElement('article');
        slides.appendChild(article);
      }
      article.appendChild(child);
    }
  }
  handleDomLoaded();
}

textiletoslides();&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
