doc/api/classes/String.html in erbook-8.0.0 vs doc/api/classes/String.html in erbook-9.0.0
- old
+ new
@@ -47,14 +47,12 @@
<dt>T</dt>
<dd>
<ul>
- <li><a href="#M000043">to_inline_xhtml</a>,</li>
+ <li><a href="#M000047">to_xhtml</a></li>
- <li><a href="#M000044">to_xhtml</a></li>
-
</ul>
</dd>
</dl>
@@ -110,80 +108,38 @@
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
- <div class="title" id="M000043">
+ <div class="title" id="M000047">
- <a name="M000043"></a><b>to_inline_xhtml</b>()
+ <a name="M000047"></a><b>to_xhtml</b>()
</div>
<div class="description">
<p>
-Transforms this string into an <b>inline</b> XHTML string (one that does
-not contain any block-level XHTML elements at the root).
+Transforms this string into XHTML.
</p>
</div>
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show</a>
+ Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
- | <a href="http://github.com/sunaku/erbook/blob/af5b6a4baba28349d216740335a2e461728f59d5/lib/erbook/to_xhtml.rb#L50" target="_blank" class="github_url">on GitHub</a>
+ | <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/to_xhtml.rb#L49" target="_blank" class="github_url">on GitHub</a>
</p>
- <div id="M000043_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 50</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_inline_xhtml</span>
- <span class="ruby-identifier">to_xhtml</span> <span class="ruby-keyword kw">true</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000044">
-
- <a name="M000044"></a><b>to_xhtml</b>(inline = false)
-
- </div>
-
- <div class="description">
- <p>
-Transforms this string into XHTML while ensuring that the result contains
-one or more block-level elements at the root.
-</p>
-<dl>
-<dt>inline</dt><dd>If true, the resulting XHTML will <b>not</b> contain a block-level element
-at the root.
-
-</dd>
-</dl>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
-
- | <a href="http://github.com/sunaku/erbook/blob/af5b6a4baba28349d216740335a2e461728f59d5/lib/erbook/to_xhtml.rb#L62" target="_blank" class="github_url">on GitHub</a>
-
- </p>
- <div id="M000044_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 62</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_xhtml</span> <span class="ruby-identifier">inline</span> = <span class="ruby-keyword kw">false</span>
+ <div id="M000047_source" class="dyn-source">
+ <pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 49</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_xhtml</span>
<span class="ruby-identifier">with_protected_tags</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-constant">VERBATIM_TAGS</span>, <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">text</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">html</span> = <span class="ruby-identifier">with_protected_tags</span>(<span class="ruby-identifier">text</span>, <span class="ruby-constant">PROTECTED_TAGS</span>, <span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">do</span>
- <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">thru_maruku</span> <span class="ruby-identifier">inline</span>
+ <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">thru_maruku</span>
<span class="ruby-keyword kw">end</span>
<span class="ruby-comment cmt"># Markdown's "code spans" should really be "pre spans"</span>
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">html</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">%r{(<pre>)<code>(.*?)</code>(</pre>)}</span><span class="ruby-identifier">m</span>, <span class="ruby-value str">'\1\2\3'</span>
<span class="ruby-keyword kw">end</span>
\ No newline at end of file