asciidoctor-html5s 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17192d6ef251b997cf21bd27f3f6c5af60031d17d8e44370f582e03b63a309d6
4
- data.tar.gz: 0543d25c6cf4492434466268c9c5a18d10c05c50d6ef85cc99ffb5ae0c4adb9a
3
+ metadata.gz: 630da0664ff127034ff14612b42ccfd524f9c37b8dbad7fd86631fef516fc731
4
+ data.tar.gz: 7eef8c8b6512eb08da9cd4bce496e984a6d9b5a21925fc933c13276d40359990
5
5
  SHA512:
6
- metadata.gz: cd24b1973f48a795e212273da1e09e67eb9ea92e6ba8b5ec4592ffc440972cbef01f4d592bfa1aa7e2e22a20946f956c5596e4d2b7c41e7469e2116bfb8da1f2
7
- data.tar.gz: 64316e3f00ccefec49487b96f0e9024d7814d2644e4f8cc22a93cae473185bb6fc5f1cac95ce7b12e5191e92539fc68538c8334d8b1eaad64ade64ddd4c39c45
6
+ metadata.gz: b8919b949ca260a57dc2555f8ee3bff088b4608cef4ac107be9fa922def409054ffb2ef0b6ea4ece811daf19e4528be910cc5d8ae11a2136de320b688be6cfa4
7
+ data.tar.gz: 717270402b7f40ba2266e0d13594b6bdec16a644e76f6c32454812f9f10fae0806e483bfa7d97b303f2213acb0740db33404903d561b7e3c27be89c516a474ae
data/README.adoc CHANGED
@@ -5,7 +5,7 @@
5
5
  :gh-branch: master
6
6
 
7
7
  ifdef::env-github[]
8
- image:https://travis-ci.org/{gh-name}.svg?branch={gh-branch}[Build Status, link="https://travis-ci.org/{gh-name}"]
8
+ image:https://github.com/{gh-name}/workflows/CI/badge.svg[CI Status, link=https://github.com/{gh-name}/actions?query=workflow%3A%22CI%22]
9
9
  image:https://img.shields.io/gem/v/{gem-name}.svg?style=flat[Gem Version, link="https://rubygems.org/gems/{gem-name}"]
10
10
  image:https://img.shields.io/npm/v/{gem-name}.svg?style=flat[npm Version, link="https://www.npmjs.org/package/{gem-name}"]
11
11
  endif::env-github[]
@@ -154,7 +154,7 @@ ifndef::npm-readme[]
154
154
  endif::npm-readme[]
155
155
 
156
156
  * https://nodejs.org/[Node.js]
157
- * https://www.npmjs.com/package/@asciidoctor/core[@asciidoctor/core] >=2.0.0 <2.2.0
157
+ * https://www.npmjs.com/package/@asciidoctor/core[@asciidoctor/core] >=2.0.0 <3.0.0
158
158
 
159
159
 
160
160
  == Installation
@@ -35,3 +35,4 @@
35
35
  - else
36
36
  - content.each do |text|
37
37
  p =text
38
+ </t#{tblsec}>
@@ -807,95 +807,158 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
807
807
  #----------------- Begin of generated transformation methods -----------------#
808
808
 
809
809
 
810
- def image(node, opts = {})
811
- node.extend(Helpers)
812
- node.instance_eval do
813
- _buf = []; _slim_controls1 = block_with_caption(:bottom, :class=>'image-block', :style=>style_value(text_align: (attr :align), float: (attr :float))) do; _slim_controls2 = [];
814
- ; target_url = image_uri(attr :target);
815
- ; _slim_controls3 = html_tag_if(image_link, :a,
816
- :class=>['image', ('bare' if image_link == target_url)],
817
- :href=>image_link,
818
- :title=>image_link_label,
819
- 'aria-label'=>image_link_label,
820
- :target=>(attr :window),
821
- :rel=>link_rel) do; _slim_controls4 = [];
822
- ; _slim_controls4 << ("<img"); _slim_codeattributes1 = target_url; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls4 << (" src"); else; _slim_controls4 << (" src=\""); _slim_controls4 << (_slim_codeattributes1); _slim_controls4 << ("\""); end; end; _slim_codeattributes2 = (attr :alt); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls4 << (" alt"); else; _slim_controls4 << (" alt=\""); _slim_controls4 << (_slim_codeattributes2); _slim_controls4 << ("\""); end; end; _slim_codeattributes3 = (attr :width); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls4 << (" width"); else; _slim_controls4 << (" width=\""); _slim_controls4 << (_slim_codeattributes3); _slim_controls4 << ("\""); end; end; _slim_codeattributes4 = (attr :height); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls4 << (" height"); else; _slim_controls4 << (" height=\""); _slim_controls4 << (_slim_codeattributes4); _slim_controls4 << ("\""); end; end; _slim_codeattributes5 = (attr :loading); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls4 << (" loading"); else; _slim_controls4 << (" loading=\""); _slim_controls4 << (_slim_codeattributes5); _slim_controls4 << ("\""); end; end; _slim_controls4 << (">");
823
- ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
824
- end
825
- end
826
-
827
- def open(node, opts = {})
810
+ def olist(node, opts = {})
828
811
  node.extend(Helpers)
829
812
  node.instance_eval do
830
- _buf = []; if style == 'abstract';
831
- ; if abstract_allowed?;
832
- ; _slim_controls1 = block_with_title :class=>'quote-block abstract' do; _slim_controls2 = [];
833
- ; _slim_controls2 << ("<blockquote>"); _slim_controls2 << (content);
834
- ; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; elsif style != 'partintro' || partintro_allowed?;
835
- ; _slim_controls3 = block_with_title :class=>['open-block', (style if style != 'open')] do; _slim_controls4 = [];
836
- ; _slim_controls4 << ("<div class=\"content\">"); _slim_controls4 << (content);
837
- ; _slim_controls4 << ("</div>"); _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); end; _buf = _buf.join("")
813
+ _buf = []; _slim_controls1 = block_with_title :class=>['olist', style] do; _slim_controls2 = [];
814
+ ; _slim_controls2 << ("<ol"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :start); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" start"); else; _slim_controls2 << (" start=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = list_marker_keyword; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" type"); else; _slim_controls2 << (" type=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'reversed'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" reversed"); else; _slim_controls2 << (" reversed=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
815
+ ; items.each do |item|;
816
+ ; _slim_controls2 << ("<li"); _slim_codeattributes5 = item.id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes6 = item.role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes6); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << ((print_item_content item));
817
+ ; _slim_controls2 << ("</li>"); end; _slim_controls2 << ("</ol>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
838
818
  end
839
819
  end
840
820
 
841
- def inline_callout(node, opts = {})
821
+ def verse(node, opts = {})
842
822
  node.extend(Helpers)
843
823
  node.instance_eval do
844
- _buf = []; _buf << ("<b class=\"conum\">"); _buf << (text);
845
- ; _buf << ("</b>"); _buf = _buf.join("")
824
+ _buf = []; _slim_controls1 = block_with_title :class=>'verse-block' do; _slim_controls2 = [];
825
+ ; if attr?(:attribution) || attr?(:citetitle);
826
+ ; _slim_controls2 << ("<blockquote class=\"verse\"><pre class=\"verse\">");
827
+ ; _slim_controls2 << (content);
828
+ ; _slim_controls2 << ("</pre><footer>&#8212; <cite>");
829
+ ;
830
+ ;
831
+ ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
832
+ ; _slim_controls2 << ("</cite></footer></blockquote>");
833
+ ; else;
834
+ ; _slim_controls2 << ("<pre class=\"verse\">"); _slim_controls2 << (content);
835
+ ; _slim_controls2 << ("</pre>"); end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
846
836
  end
847
837
  end
848
838
 
849
- def page_break(node, opts = {})
839
+ def inline_footnote(node, opts = {})
850
840
  node.extend(Helpers)
851
841
  node.instance_eval do
852
- _buf = []; _buf << ("<div role=\"doc-pagebreak\" style=\"page-break-after: always;\"></div>");
853
- ; _buf = _buf.join("")
842
+ _buf = []; if (index = local_attr :index);
843
+ ;
844
+ ;
845
+ ;
846
+ ;
847
+ ; _buf << ("<a class=\"footnote-ref\""); _slim_codeattributes1 = (footnoteref_id unless type == :xref); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (" href=\"#"); _buf << (footnote_id); _buf << ("\" title=\"View footnote "); _buf << (index); _buf << ("\" role=\"doc-noteref\">[");
848
+ ; _buf << (index); _buf << ("]</a>");
849
+ ; else;
850
+ ; _buf << ("<a class=\"footnote-ref broken\" title=\"Unresolved footnote reference.\">["); _buf << (text); _buf << ("]</a>");
851
+ ; end; _buf = _buf.join("")
854
852
  end
855
853
  end
856
854
 
857
- def admonition(node, opts = {})
855
+ def preamble(node, opts = {})
858
856
  node.extend(Helpers)
859
857
  node.instance_eval do
860
- _buf = []; capture do;
861
- ; _buf << ("<h6"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "block-title"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ('label-only' unless title?); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << ("><span class=\"title-label\">");
862
- ; _buf << ("#{local_attr :textlabel}: ");
863
- ; _buf << ("</span>"); _buf << (title);
864
- ; _buf << ("</h6>"); _slim_controls1 = html_tag_if !blocks?, :p do; _slim_controls2 = [];
865
- ; _slim_controls2 << (content);
866
- ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; if admonition_aside?;
867
- ; _buf << ("<aside"); _temple_html_attributeremover2 = []; _temple_html_attributemerger2 = []; _temple_html_attributemerger2[0] = "admonition-block"; _temple_html_attributemerger2[1] = []; _slim_codeattributes2 = [(attr :name), role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributemerger2[1] << (_slim_codeattributes2.join(" ")); else; _temple_html_attributemerger2[1] << (_slim_codeattributes2); end; _temple_html_attributemerger2[1] = _temple_html_attributemerger2[1].join(""); _temple_html_attributeremover2 << (_temple_html_attributemerger2.reject(&:empty?).join(" ")); _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _slim_codeattributes4 = admonition_aria; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" role"); else; _buf << (" role=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _buf << (">");
868
- ; yield_capture;
869
- ; _buf << ("</aside>"); else;
870
- ; _buf << ("<section"); _temple_html_attributeremover3 = []; _temple_html_attributemerger3 = []; _temple_html_attributemerger3[0] = "admonition-block"; _temple_html_attributemerger3[1] = []; _slim_codeattributes5 = [(attr :name), role]; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributemerger3[1] << (_slim_codeattributes5.join(" ")); else; _temple_html_attributemerger3[1] << (_slim_codeattributes5); end; _temple_html_attributemerger3[1] = _temple_html_attributemerger3[1].join(""); _temple_html_attributeremover3 << (_temple_html_attributemerger3.reject(&:empty?).join(" ")); _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover3); _buf << ("\""); end; _slim_codeattributes6 = id; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _slim_codeattributes7 = admonition_aria; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" role"); else; _buf << (" role=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _buf << (">");
871
- ; yield_capture;
872
- ; _buf << ("</section>"); end; _buf = _buf.join("")
858
+ _buf = []; _buf << ("<section id=\"preamble\" aria-label=\"Preamble\">");
859
+ ; _buf << (content);
860
+ ; _buf << ("</section>"); if (document.attr? :toc) && (document.attr? 'toc-placement', 'preamble');
861
+ ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
862
+ ; _buf << ((document.attr 'toc-title'));
863
+ ; _buf << ("</h2>");
864
+ ; _buf << (converter.convert document, 'outline');
865
+ ; _buf << ("</nav>");
866
+ ; end; _buf = _buf.join("")
873
867
  end
874
868
  end
875
869
 
876
- def listing(node, opts = {})
870
+ def document(node, opts = {})
877
871
  node.extend(Helpers)
878
872
  node.instance_eval do
879
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'listing-block' do; _slim_controls2 = [];
880
- ; if style == 'source';
881
- ; highlighter = document.attr('source-highlighter');
873
+ _buf = []; _buf << ("<!DOCTYPE html><html");
874
+ ; _slim_codeattributes1 = (attr :lang, 'en' unless attr? :nolang); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" lang"); else; _buf << (" lang=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">");
882
875
  ;
883
- ; if defined?(::Asciidoctor::SyntaxHighlighter) && document.syntax_highlighter;
884
- ; _slim_controls2 << (formatted_source);
885
876
  ;
886
- ; elsif highlighter == 'html-pipeline';
887
- ; _slim_controls2 << ("<pre><code"); _slim_codeattributes1 = source_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
888
- ; _slim_controls2 << ("</code></pre>"); else;
889
877
  ;
890
- ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = [highlighter, 'highlight', ('linenums' if attr? :linenums), nowrap?]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << ("><code");
891
- ; _temple_html_attributeremover2 = []; _slim_codeattributes3 = source_code_class; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = source_lang; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
892
- ; _slim_controls2 << ("</code></pre>"); end; else;
893
- ; _slim_controls2 << ("<pre"); _temple_html_attributeremover3 = []; _slim_codeattributes5 = nowrap?; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes5); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
894
- ; _slim_controls2 << ("</pre>");
895
878
  ;
896
- ; end; if callout_list;
897
- ; _slim_controls2 << (converter.convert callout_list, 'colist');
898
- ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
879
+ ; document_content = content;
880
+ ; _buf << ("<head><meta");
881
+ ; _slim_codeattributes2 = (attr :encoding, 'UTF-8'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" charset"); else; _buf << (" charset=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << ("><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta name=\"generator\" content=\"Asciidoctor ");
882
+ ;
883
+ ;
884
+ ; _buf << (attr 'asciidoctor-version'); _buf << ("\">");
885
+ ; _buf << (html_meta_if 'application-name', (attr 'app-name'));
886
+ ; _buf << (html_meta_if 'author', (attr :authors));
887
+ ; _buf << (html_meta_if 'copyright', (attr :copyright));
888
+ ; _buf << (html_meta_if 'description', (attr :description));
889
+ ; _buf << (html_meta_if 'keywords', (attr :keywords));
890
+ ; _buf << ("<title>"); _buf << (((doctitle sanitize: true) || (attr 'untitled-label')));
891
+ ; _buf << ("</title>"); _buf << (styles_and_scripts);
892
+ ; unless (docinfo_content = docinfo).empty?;
893
+ ; _buf << (docinfo_content);
894
+ ; end; _buf << ("</head><body");
895
+ ;
896
+ ;
897
+ ; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes4 = [(attr :doctype),
898
+ ("#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" if (attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto')),
899
+ (attr :docrole) || (attr :role)]; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes4); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes5 = style_value(max_width: (attr 'max-width')); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" style"); else; _buf << (" style=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _buf << (">");
900
+ ; unless (docinfo_content = (docinfo :header)).empty?;
901
+ ; _buf << (docinfo_content);
902
+ ; end; unless noheader;
903
+ ; _buf << ("<header>");
904
+ ; if header?;
905
+ ; unless notitle;
906
+ ; _buf << ("<h1>"); _buf << (header.title);
907
+ ; _buf << ("</h1>"); end; if [:author, :revnumber, :revdate, :revremark].any? {|a| attr? a };
908
+ ; _buf << ("<div class=\"details\">");
909
+ ; if attr? :author;
910
+ ; _buf << ("<span class=\"author\" id=\"author\">"); _buf << ((attr :author));
911
+ ; _buf << ("</span><br>");
912
+ ; if attr? :email;
913
+ ; _buf << ("<span class=\"email\" id=\"email\">"); _buf << (sub_macros(attr :email));
914
+ ; _buf << ("</span><br>");
915
+ ; end; if (authorcount = (attr :authorcount).to_i) > 1;
916
+ ; (2..authorcount).each do |idx|;
917
+ ; _buf << ("<span class=\"author\" id=\"author"); _buf << (idx); _buf << ("\">"); _buf << ((attr "author_#{idx}"));
918
+ ; _buf << ("</span><br>");
919
+ ; if attr? "email_#{idx}";
920
+ ; _buf << ("<span class=\"email\" id=\"email"); _buf << (idx); _buf << ("\">"); _buf << (sub_macros(attr "email_#{idx}"));
921
+ ; _buf << ("</span>"); end; end; end; end; if attr? :revnumber;
922
+ ; _buf << ("<span id=\"revnumber\">"); _buf << (((attr 'version-label') || '').downcase); _buf << (" "); _buf << (attr :revnumber); _buf << (',' if attr? :revdate); _buf << ("</span> ");
923
+ ;
924
+ ; end; if attr? :revdate;
925
+ ; _buf << ("<time id=\"revdate\""); _slim_codeattributes6 = revdate_iso; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" datetime"); else; _buf << (" datetime=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _buf << (">"); _buf << ((attr :revdate));
926
+ ; _buf << ("</time>"); end; if attr? :revremark;
927
+ ; _buf << ("<br><span id=\"revremark\">");
928
+ ; _buf << ((attr :revremark));
929
+ ; _buf << ("</span>"); end; _buf << ("</div>"); end; end; if (attr? :toc) && (attr? 'toc-placement', 'auto');
930
+ ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover2 = []; _slim_codeattributes7 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes7); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
931
+ ; _buf << ((document.attr 'toc-title'));
932
+ ; _buf << ("</h2>");
933
+ ; _buf << (converter.convert document, 'outline');
934
+ ; _buf << ("</nav>");
935
+ ; end;
936
+ ; _buf << ("</header>"); end; _buf << ("<div id=\"content\">"); _buf << (document_content);
937
+ ; _buf << ("</div>"); unless !footnotes? || (attr? :nofootnotes);
938
+ ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
939
+ ;
940
+ ;
941
+ ; footnotes.each do |fn|;
942
+ ; _buf << ("<li class=\"footnote\""); _slim_codeattributes8 = (footnote_id fn.index); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
943
+ ; _buf << ("#{fn.text} ");
944
+ ;
945
+ ;
946
+ ;
947
+ ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
948
+ ;
949
+ ; end; _buf << ("</ol></section>");
950
+ ; end; unless nofooter;
951
+ ; _buf << ("<footer><div id=\"footer-text\">");
952
+ ;
953
+ ; if attr? :revnumber;
954
+ ; _buf << (attr 'version-label'); _buf << (" "); _buf << (attr :revnumber);
955
+ ; end; if attr? 'last-update-label';
956
+ ; _buf << ("<br>");
957
+ ; _buf << (attr 'last-update-label'); _buf << (" "); _buf << (attr :docdatetime);
958
+ ; end; _buf << ("</div>"); unless (docinfo_content = (docinfo :footer)).empty?;
959
+ ; _buf << (docinfo_content);
960
+ ; end;
961
+ ; _buf << ("</footer>"); end; _buf << ("</body></html>"); _buf = _buf.join("")
899
962
  end
900
963
  end
901
964
 
@@ -912,106 +975,156 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
912
975
  end
913
976
  end
914
977
 
915
- def inline_footnote(node, opts = {})
978
+ def quote(node, opts = {})
916
979
  node.extend(Helpers)
917
980
  node.instance_eval do
918
- _buf = []; if (index = local_attr :index);
919
- ;
920
- ;
981
+ _buf = []; _slim_controls1 = block_with_title :class=>'quote-block' do; _slim_controls2 = [];
982
+ ; _slim_controls2 << ("<blockquote>");
983
+ ; _slim_controls3 = html_tag_if !blocks?, :p do; _slim_controls4 = [];
984
+ ; _slim_controls4 << (content);
985
+ ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); if attr?(:attribution) || attr?(:citetitle);
986
+ ; _slim_controls2 << ("<footer>&#8212; <cite>");
921
987
  ;
922
988
  ;
923
- ; _buf << ("<a class=\"footnote-ref\""); _slim_codeattributes1 = (footnoteref_id unless type == :xref); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (" href=\"#"); _buf << (footnote_id); _buf << ("\" title=\"View footnote "); _buf << (index); _buf << ("\" role=\"doc-noteref\">[");
924
- ; _buf << (index); _buf << ("]</a>");
925
- ; else;
926
- ; _buf << ("<a class=\"footnote-ref broken\" title=\"Unresolved footnote reference.\">["); _buf << (text); _buf << ("]</a>");
927
- ; end; _buf = _buf.join("")
989
+ ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
990
+ ; _slim_controls2 << ("</cite></footer>");
991
+ ; end; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
928
992
  end
929
993
  end
930
994
 
931
- def inline_break(node, opts = {})
995
+ def image(node, opts = {})
932
996
  node.extend(Helpers)
933
997
  node.instance_eval do
934
- _buf = []; _buf << (text);
935
- ; _buf << ("<br>");
936
- ; _buf = _buf.join("")
998
+ _buf = []; _slim_controls1 = block_with_caption(:bottom, :class=>'image-block', :style=>style_value(text_align: (attr :align), float: (attr :float))) do; _slim_controls2 = [];
999
+ ; target_url = image_uri(attr :target);
1000
+ ; _slim_controls3 = html_tag_if(image_link, :a,
1001
+ :class=>['image', ('bare' if image_link == target_url)],
1002
+ :href=>image_link,
1003
+ :title=>image_link_label,
1004
+ 'aria-label'=>image_link_label,
1005
+ :target=>(attr :window),
1006
+ :rel=>link_rel) do; _slim_controls4 = [];
1007
+ ; _slim_controls4 << ("<img"); _slim_codeattributes1 = target_url; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls4 << (" src"); else; _slim_controls4 << (" src=\""); _slim_controls4 << (_slim_codeattributes1); _slim_controls4 << ("\""); end; end; _slim_codeattributes2 = (attr :alt); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls4 << (" alt"); else; _slim_controls4 << (" alt=\""); _slim_controls4 << (_slim_codeattributes2); _slim_controls4 << ("\""); end; end; _slim_codeattributes3 = (attr :width); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls4 << (" width"); else; _slim_controls4 << (" width=\""); _slim_controls4 << (_slim_codeattributes3); _slim_controls4 << ("\""); end; end; _slim_codeattributes4 = (attr :height); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls4 << (" height"); else; _slim_controls4 << (" height=\""); _slim_controls4 << (_slim_codeattributes4); _slim_controls4 << ("\""); end; end; _slim_codeattributes5 = (attr :loading); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls4 << (" loading"); else; _slim_controls4 << (" loading=\""); _slim_controls4 << (_slim_codeattributes5); _slim_controls4 << ("\""); end; end; _slim_controls4 << (">");
1008
+ ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
937
1009
  end
938
1010
  end
939
1011
 
940
- def stem(node, opts = {})
1012
+ def colist(node, opts = {})
941
1013
  node.extend(Helpers)
942
1014
  node.instance_eval do
943
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'stem-block' do; _slim_controls2 = [];
944
- ; _slim_controls2 << ("<div class=\"math\""); _slim_codeattributes1 = stem_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << ((delimit_stem content, style));
945
- ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1015
+ _buf = [];
1016
+ ; _buf << ("<ol"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "callout-list"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = [style, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1017
+ ; items.each do |item|;
1018
+ ; _buf << ("<li>"); _buf << (item.text);
1019
+ ; _buf << ("</li>"); end; _buf << ("</ol>"); _buf = _buf.join("")
946
1020
  end
947
1021
  end
948
1022
 
949
- def olist(node, opts = {})
1023
+ def pass(node, opts = {})
950
1024
  node.extend(Helpers)
951
1025
  node.instance_eval do
952
- _buf = []; _slim_controls1 = block_with_title :class=>['olist', style] do; _slim_controls2 = [];
953
- ; _slim_controls2 << ("<ol"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :start); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" start"); else; _slim_controls2 << (" start=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = list_marker_keyword; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" type"); else; _slim_controls2 << (" type=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'reversed'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" reversed"); else; _slim_controls2 << (" reversed=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
954
- ; items.each do |item|;
955
- ; _slim_controls2 << ("<li"); _slim_codeattributes5 = item.id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes6 = item.role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes6); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << ((print_item_content item));
956
- ; _slim_controls2 << ("</li>"); end; _slim_controls2 << ("</ol>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1026
+ _buf = []; _buf << (content);
1027
+ ; _buf = _buf.join("")
957
1028
  end
958
1029
  end
959
1030
 
960
- def dlist(node, opts = {})
1031
+ def inline_menu(node, opts = {})
961
1032
  node.extend(Helpers)
962
1033
  node.instance_eval do
963
- _buf = []; _slim_controls1 = block_with_title :class=>['dlist', style], :role=>('doc-qna' if style == 'qanda') do; _slim_controls2 = [];
964
- ; _slim_controls2 << ("<dl"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
965
- ; items.each do |terms, dd|;
966
- ; [*terms].each do |dt|;
967
- ; _slim_controls2 << ("<dt>"); _slim_controls2 << (dt.text);
968
- ; _slim_controls2 << ("</dt>"); end; unless dd.nil?;
969
- ; _slim_controls2 << ("<dd>"); _slim_controls2 << ((print_item_content dd));
970
- ; _slim_controls2 << ("</dd>"); end; end; _slim_controls2 << ("</dl>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
971
- end
972
- end
973
-
974
- def table(node, opts = {})
1034
+ _buf = []; if local_attr :menuitem;
1035
+ ; capture do;
1036
+ ; _buf << ("&#160;<span class=\"caret\">&#8250;</span>&#32;");
1037
+ ;
1038
+ ;
1039
+ ; end; _buf << ("<kbd class=\"menuseq\"><kbd class=\"menu\"><samp>");
1040
+ ;
1041
+ ; _buf << ((attr :menu));
1042
+ ; _buf << ("</samp></kbd>"); yield_capture;
1043
+ ; (attr 'submenus').each do |submenu|;
1044
+ ; _buf << ("<kbd class=\"menu\"><samp>");
1045
+ ; _buf << (submenu);
1046
+ ; _buf << ("</samp></kbd>"); yield_capture;
1047
+ ; end; _buf << ("<kbd class=\"menu\"><samp>");
1048
+ ; _buf << ((local_attr :menuitem));
1049
+ ; _buf << ("</samp></kbd></kbd>"); else;
1050
+ ; _buf << ("<kbd class=\"menu\"><samp>");
1051
+ ; _buf << ((attr :menu));
1052
+ ; _buf << ("</samp></kbd>"); end; _buf = _buf.join("")
1053
+ end
1054
+ end
1055
+
1056
+ def dlist(node, opts = {})
975
1057
  node.extend(Helpers)
976
1058
  node.instance_eval do
977
- _buf = []; _slim_controls1 = block_with_caption :top, :class=>'table-block' do; _slim_controls2 = [];
978
- ;
1059
+ _buf = []; _slim_controls1 = block_with_title :class=>['dlist', style], :role=>('doc-qna' if style == 'qanda') do; _slim_controls2 = [];
1060
+ ; _slim_controls2 << ("<dl"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = style; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1061
+ ; items.each do |terms, dd|;
1062
+ ; [*terms].each do |dt|;
1063
+ ; _slim_controls2 << ("<dt>"); _slim_controls2 << (dt.text);
1064
+ ; _slim_controls2 << ("</dt>"); end; unless dd.nil?;
1065
+ ; _slim_controls2 << ("<dd>"); _slim_controls2 << ((print_item_content dd));
1066
+ ; _slim_controls2 << ("</dd>"); end; end; _slim_controls2 << ("</dl>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1067
+ end
1068
+ end
1069
+
1070
+ def inline_indexterm(node, opts = {})
1071
+ node.extend(Helpers)
1072
+ node.instance_eval do
1073
+ _buf = []; if type == :visible;
1074
+ ; _buf << (text);
1075
+ ; end; _buf = _buf.join("")
1076
+ end
1077
+ end
1078
+
1079
+ def toc(node, opts = {})
1080
+ node.extend(Helpers)
1081
+ node.instance_eval do
1082
+ _buf = [];
979
1083
  ;
980
- ; _slim_controls2 << ("<table"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = ["frame-#{attr :frame, 'all'}", "grid-#{attr :grid, 'all'}", stretch?, ("stripes-#{attr :stripes}" if attr? :stripes)]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = style_value(width: ("#{attr :tablepcwidth}%" if !autowidth? && !stretch? || (local_attr :width)),
981
- float: (attr :float)); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
982
- ; unless (attr :rowcount).zero?;
983
- ; _slim_controls2 << ("<colgroup>");
984
- ; if autowidth?;
985
- ; columns.each do;
986
- ; _slim_controls2 << ("<col>");
987
- ; end; else;
988
- ; columns.each do |col|;
989
- ; _slim_controls2 << ("<col"); _slim_codeattributes3 = style_value(width: ("#{col.attr :colpcwidth}%" if !autowidth? col)); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
990
- ; end; end; _slim_controls2 << ("</colgroup>"); [:head, :foot, :body].reject { |tblsec| rows[tblsec].empty? }.each do |tblsec|;
991
- ; _slim_controls2 << ("<t"); _slim_controls2 << (tblsec); _slim_controls2 << (">");
992
- ; rows[tblsec].each do |row|;
993
- ; _slim_controls2 << ("<tr>");
994
- ; row.each do |cell|;
995
- ; _slim_controls3 = html_tag(tblsec == :head || cell.style == :header ? 'th' : 'td',
996
- :class=>["halign-#{cell.attr :halign}", "valign-#{cell.attr :valign}"],
997
- :colspan=>cell.colspan,
998
- :rowspan=>cell.rowspan,
999
- :style=>style_value(background_color: (document.attr :cellbgcolor))) do; _slim_controls4 = [];
1000
- ; if tblsec == :head;
1001
- ; _slim_controls4 << (cell.text);
1002
- ; else;
1003
- ; case cell.style;
1004
- ; when :asciidoc;
1005
- ; _slim_controls4 << (cell.content);
1006
- ; when :literal;
1007
- ; _slim_controls4 << ("<div class=\"literal\"><pre>"); _slim_controls4 << (cell.text);
1008
- ; _slim_controls4 << ("</pre></div>"); else;
1009
- ; if (content = cell.content).one?;
1010
- ; _slim_controls4 << (content.first);
1011
- ; else;
1012
- ; content.each do |text|;
1013
- ; _slim_controls4 << ("<p>"); _slim_controls4 << (text);
1014
- ; _slim_controls4 << ("</p>"); end; end; end; end; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); end; _slim_controls2 << ("</tr>"); end; end; end; _slim_controls2 << ("</table>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1084
+ ; if document.attr?(:toc) && document.sections?;
1085
+ ; toc_id = id || ('toc' if document.embedded? || !document.attr?('toc-placement'));
1086
+ ; _buf << ("<nav"); _slim_codeattributes1 = toc_id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = (attr :role, (document.attr 'toc-class', 'toc')); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\">");
1087
+ ; _slim_htag_filter1 = ((level + 2)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes3 = ("#{toc_id}-title" if toc_id); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1088
+ ; _buf << ((title || (document.attr 'toc-title')));
1089
+ ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">");
1090
+ ; _buf << (converter.convert document, 'outline', :toclevels=>((attr :levels).to_i if attr? :levels));
1091
+ ; _buf << ("</nav>"); else;
1092
+ ; _buf << ("<!--toc disabled-->");
1093
+ ; end; _buf = _buf.join("")
1094
+ end
1095
+ end
1096
+
1097
+ def ulist(node, opts = {})
1098
+ node.extend(Helpers)
1099
+ node.instance_eval do
1100
+ _buf = []; checklist = 'task-list' if option? 'checklist';
1101
+ ; _slim_controls1 = block_with_title :class=>['ulist', style] do; _slim_controls2 = [];
1102
+ ; _slim_controls2 << ("<ul"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (checklist || style); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1103
+ ; items.each do |item|;
1104
+ ; if checklist && (item.attr? :checkbox);
1105
+ ; _slim_controls2 << ("<li"); _temple_html_attributeremover2 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "task-list-item"; _temple_html_attributemerger1[1] = []; _slim_codeattributes2 = item.role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes2.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes2); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover2 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes3 = item.id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("><input class=\"task-list-item-checkbox\" type=\"checkbox\" disabled");
1106
+ ; _slim_codeattributes4 = (item.attr? :checked); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" checked"); else; _slim_controls2 << (" checked=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("> ");
1107
+ ; _slim_controls2 << (item.text);
1108
+ ; _slim_controls2 << ("</li>"); else;
1109
+ ; _slim_controls2 << ("<li"); _slim_codeattributes5 = item.id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes6 = item.role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes6); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1110
+ ; _slim_controls2 << ((print_item_content item));
1111
+ ; _slim_controls2 << ("</li>"); end; end; _slim_controls2 << ("</ul>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1112
+ end
1113
+ end
1114
+
1115
+ def inline_button(node, opts = {})
1116
+ node.extend(Helpers)
1117
+ node.instance_eval do
1118
+ _buf = []; _buf << ("<kbd class=\"button\"><samp>");
1119
+ ; _buf << (text);
1120
+ ; _buf << ("</samp></kbd>"); _buf = _buf.join("")
1121
+ end
1122
+ end
1123
+
1124
+ def empty(node, opts = {})
1125
+ node.extend(Helpers)
1126
+ node.instance_eval do
1127
+ _buf = []; ; _buf = _buf.join("")
1015
1128
  end
1016
1129
  end
1017
1130
 
@@ -1029,67 +1142,127 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
1029
1142
  end
1030
1143
  end
1031
1144
 
1032
- def empty(node, opts = {})
1145
+ def outline(node, opts = {})
1033
1146
  node.extend(Helpers)
1034
1147
  node.instance_eval do
1035
- _buf = []; ; _buf = _buf.join("")
1148
+ _buf = []; unless sections.empty?;
1149
+ ;
1150
+ ; toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i;
1151
+ ; slevel = section_level sections.first;
1152
+ ; _buf << ("<ol class=\"toc-list level-"); _buf << (slevel); _buf << ("\">");
1153
+ ; sections.each do |sec|;
1154
+ ; _buf << ("<li><a href=\"#");
1155
+ ; _buf << (sec.id); _buf << ("\">"); _buf << ((section_title sec, drop_anchors: true));
1156
+ ; _buf << ("</a>"); if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline');
1157
+ ; _buf << (child_toc);
1158
+ ; end; _buf << ("</li>"); end; _buf << ("</ol>"); end; _buf = _buf.join("")
1036
1159
  end
1037
1160
  end
1038
1161
 
1039
- def pass(node, opts = {})
1162
+ def inline_image(node, opts = {})
1040
1163
  node.extend(Helpers)
1041
1164
  node.instance_eval do
1042
- _buf = []; _buf << (content);
1043
- ; _buf = _buf.join("")
1165
+ _buf = []; _slim_controls1 = html_tag_if((attr? :link), :a, :class=>'image', :href=>(attr :link), :target=>(attr :window), :rel=>link_rel) do; _slim_controls2 = [];
1166
+ ; if type == 'icon' && (document.attr? :icons, 'font');
1167
+ ; _slim_controls2 << ("<i"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = [*icon_fa_classes, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :title); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></i>");
1168
+ ; elsif type == 'icon' && !(document.attr? :icons);
1169
+ ; _slim_controls2 << ("<b"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = ['icon', role]; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = (attr :title); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">[");
1170
+ ; _slim_controls2 << (attr :alt); _slim_controls2 << ("]</b>");
1171
+ ; else;
1172
+ ;
1173
+ ;
1174
+ ; _slim_controls2 << ("<img"); _slim_codeattributes5 = (type == 'icon' ? (icon_uri target) : (image_uri target)); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_codeattributes6 = (attr :alt); if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" alt"); else; _slim_controls2 << (" alt=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _slim_codeattributes10 = (attr :loading); if _slim_codeattributes10; if _slim_codeattributes10 == true; _slim_controls2 << (" loading"); else; _slim_controls2 << (" loading=\""); _slim_controls2 << (_slim_codeattributes10); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes11 = [(type if type != 'image'), role]; if Array === _slim_codeattributes11; _slim_codeattributes11 = _slim_codeattributes11.flatten; _slim_codeattributes11.map!(&:to_s); _slim_codeattributes11.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes11.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes11); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_codeattributes12 = style_value(float: (attr :float)); if _slim_codeattributes12; if _slim_codeattributes12 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes12); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1175
+ ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1044
1176
  end
1045
1177
  end
1046
1178
 
1047
- def inline_anchor(node, opts = {})
1179
+ def example(node, opts = {})
1048
1180
  node.extend(Helpers)
1049
1181
  node.instance_eval do
1050
- _buf = []; case type;
1051
- ; when :xref;
1052
- ; _buf << ("<a"); _slim_codeattributes1 = target; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (xref_text);
1053
- ; _buf << ("</a>"); when :ref;
1054
- ; _buf << ("<a"); _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1055
- ; when :bibref;
1056
- ; _buf << ("<a"); _slim_codeattributes4 = id; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1057
- ; _buf << (bibref_text);
1058
- ; else;
1059
- ; _buf << ("<a"); _slim_codeattributes5 = id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes6 = role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes6); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _slim_codeattributes7 = target; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _slim_codeattributes8 = (attr :window); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" target"); else; _buf << (" target=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _slim_codeattributes9 = link_rel; if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" rel"); else; _buf << (" rel=\""); _buf << (_slim_codeattributes9); _buf << ("\""); end; end; _slim_codeattributes10 = (attr :title); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" title"); else; _buf << (" title=\""); _buf << (_slim_codeattributes10); _buf << ("\""); end; end; _buf << (">"); _buf << (text);
1060
- ; _buf << ("</a>"); end; _buf = _buf.join("")
1182
+ _buf = []; if option? :collapsible;
1183
+ ; _buf << ("<details"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes3 = (option? :open); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" open"); else; _buf << (" open=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1184
+ ; if title;
1185
+ ; _buf << ("<summary>");
1186
+ ; _buf << (title);
1187
+ ; _buf << ("</summary>"); end; _buf << ("<div class=\"content\">");
1188
+ ; _buf << (content);
1189
+ ; _buf << ("</div></details>"); else;
1190
+ ; _slim_controls1 = block_with_caption :top, :class=>'example-block' do; _slim_controls2 = [];
1191
+ ; _slim_controls2 << ("<div class=\"example\">");
1192
+ ; _slim_controls2 << (content);
1193
+ ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; _buf = _buf.join("")
1061
1194
  end
1062
1195
  end
1063
1196
 
1064
- def preamble(node, opts = {})
1197
+ def section(node, opts = {})
1065
1198
  node.extend(Helpers)
1066
1199
  node.instance_eval do
1067
- _buf = []; _buf << ("<section id=\"preamble\" aria-label=\"Preamble\">");
1068
- ; _buf << (content);
1069
- ; _buf << ("</section>"); if (document.attr? :toc) && (document.attr? 'toc-placement', 'preamble');
1070
- ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1071
- ; _buf << ((document.attr 'toc-title'));
1072
- ; _buf << ("</h2>");
1073
- ; _buf << (converter.convert document, 'outline');
1074
- ; _buf << ("</nav>");
1075
- ; end; _buf = _buf.join("")
1200
+ _buf = []; _buf << ("<section"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "doc-section"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ["level-#{section_level}", role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1201
+ ; _slim_htag_filter1 = ((section_level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1202
+ ; if id;
1203
+ ; if document.attr? :sectanchors;
1204
+ ; _buf << ("<a class=\"anchor\" href=\"#"); _buf << (id); _buf << ("\" aria-hidden=\"true\"></a>");
1205
+ ; end; if document.attr? :sectlinks;
1206
+ ; _buf << ("<a class=\"link\" href=\"#"); _buf << (id); _buf << ("\">"); _buf << (section_title);
1207
+ ; _buf << ("</a>"); else;
1208
+ ; _buf << (section_title);
1209
+ ; end; else;
1210
+ ; _buf << (section_title);
1211
+ ; end; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf << (content);
1212
+ ; _buf << ("</section>"); _buf = _buf.join("")
1076
1213
  end
1077
1214
  end
1078
1215
 
1079
- def quote(node, opts = {})
1216
+ def admonition(node, opts = {})
1080
1217
  node.extend(Helpers)
1081
1218
  node.instance_eval do
1082
- _buf = []; _slim_controls1 = block_with_title :class=>'quote-block' do; _slim_controls2 = [];
1083
- ; _slim_controls2 << ("<blockquote>");
1084
- ; _slim_controls3 = html_tag_if !blocks?, :p do; _slim_controls4 = [];
1085
- ; _slim_controls4 << (content);
1086
- ; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); if attr?(:attribution) || attr?(:citetitle);
1087
- ; _slim_controls2 << ("<footer>&#8212; <cite>");
1219
+ _buf = []; capture do;
1220
+ ; _buf << ("<h6"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "block-title"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ('label-only' unless title?); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << ("><span class=\"title-label\">");
1221
+ ; _buf << ("#{local_attr :textlabel}: ");
1222
+ ; _buf << ("</span>"); _buf << (title);
1223
+ ; _buf << ("</h6>"); _slim_controls1 = html_tag_if !blocks?, :p do; _slim_controls2 = [];
1224
+ ; _slim_controls2 << (content);
1225
+ ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; if admonition_aside?;
1226
+ ; _buf << ("<aside"); _temple_html_attributeremover2 = []; _temple_html_attributemerger2 = []; _temple_html_attributemerger2[0] = "admonition-block"; _temple_html_attributemerger2[1] = []; _slim_codeattributes2 = [(attr :name), role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributemerger2[1] << (_slim_codeattributes2.join(" ")); else; _temple_html_attributemerger2[1] << (_slim_codeattributes2); end; _temple_html_attributemerger2[1] = _temple_html_attributemerger2[1].join(""); _temple_html_attributeremover2 << (_temple_html_attributemerger2.reject(&:empty?).join(" ")); _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _slim_codeattributes4 = admonition_aria; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" role"); else; _buf << (" role=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _buf << (">");
1227
+ ; yield_capture;
1228
+ ; _buf << ("</aside>"); else;
1229
+ ; _buf << ("<section"); _temple_html_attributeremover3 = []; _temple_html_attributemerger3 = []; _temple_html_attributemerger3[0] = "admonition-block"; _temple_html_attributemerger3[1] = []; _slim_codeattributes5 = [(attr :name), role]; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributemerger3[1] << (_slim_codeattributes5.join(" ")); else; _temple_html_attributemerger3[1] << (_slim_codeattributes5); end; _temple_html_attributemerger3[1] = _temple_html_attributemerger3[1].join(""); _temple_html_attributeremover3 << (_temple_html_attributemerger3.reject(&:empty?).join(" ")); _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover3); _buf << ("\""); end; _slim_codeattributes6 = id; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _slim_codeattributes7 = admonition_aria; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" role"); else; _buf << (" role=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _buf << (">");
1230
+ ; yield_capture;
1231
+ ; _buf << ("</section>"); end; _buf = _buf.join("")
1232
+ end
1233
+ end
1234
+
1235
+ def listing(node, opts = {})
1236
+ node.extend(Helpers)
1237
+ node.instance_eval do
1238
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'listing-block' do; _slim_controls2 = [];
1239
+ ; if style == 'source';
1240
+ ; highlighter = document.attr('source-highlighter');
1088
1241
  ;
1242
+ ; if defined?(::Asciidoctor::SyntaxHighlighter) && document.syntax_highlighter;
1243
+ ; _slim_controls2 << (formatted_source);
1089
1244
  ;
1090
- ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
1091
- ; _slim_controls2 << ("</cite></footer>");
1092
- ; end; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1245
+ ; elsif highlighter == 'html-pipeline';
1246
+ ; _slim_controls2 << ("<pre><code"); _slim_codeattributes1 = source_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
1247
+ ; _slim_controls2 << ("</code></pre>"); else;
1248
+ ;
1249
+ ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes2 = [highlighter, 'highlight', ('linenums' if attr? :linenums), nowrap?]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << ("><code");
1250
+ ; _temple_html_attributeremover2 = []; _slim_codeattributes3 = source_code_class; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = source_lang; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << (content);
1251
+ ; _slim_controls2 << ("</code></pre>"); end; else;
1252
+ ; _slim_controls2 << ("<pre"); _temple_html_attributeremover3 = []; _slim_codeattributes5 = nowrap?; if Array === _slim_codeattributes5; _slim_codeattributes5 = _slim_codeattributes5.flatten; _slim_codeattributes5.map!(&:to_s); _slim_codeattributes5.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes5.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes5); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1253
+ ; _slim_controls2 << ("</pre>");
1254
+ ;
1255
+ ; end; if callout_list;
1256
+ ; _slim_controls2 << (converter.convert callout_list, 'colist');
1257
+ ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1258
+ end
1259
+ end
1260
+
1261
+ def thematic_break(node, opts = {})
1262
+ node.extend(Helpers)
1263
+ node.instance_eval do
1264
+ _buf = []; _buf << ("<hr>");
1265
+ ; _buf = _buf.join("")
1093
1266
  end
1094
1267
  end
1095
1268
 
@@ -1132,272 +1305,111 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
1132
1305
  end
1133
1306
  end
1134
1307
 
1135
- def toc(node, opts = {})
1136
- node.extend(Helpers)
1137
- node.instance_eval do
1138
- _buf = [];
1139
- ;
1140
- ; if document.attr?(:toc) && document.sections?;
1141
- ; toc_id = id || ('toc' if document.embedded? || !document.attr?('toc-placement'));
1142
- ; _buf << ("<nav"); _slim_codeattributes1 = toc_id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = (attr :role, (document.attr 'toc-class', 'toc')); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\">");
1143
- ; _slim_htag_filter1 = ((level + 2)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes3 = ("#{toc_id}-title" if toc_id); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1144
- ; _buf << ((title || (document.attr 'toc-title')));
1145
- ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">");
1146
- ; _buf << (converter.convert document, 'outline', :toclevels=>((attr :levels).to_i if attr? :levels));
1147
- ; _buf << ("</nav>"); else;
1148
- ; _buf << ("<!--toc disabled-->");
1149
- ; end; _buf = _buf.join("")
1150
- end
1151
- end
1152
-
1153
- def inline_indexterm(node, opts = {})
1154
- node.extend(Helpers)
1155
- node.instance_eval do
1156
- _buf = []; if type == :visible;
1157
- ; _buf << (text);
1158
- ; end; _buf = _buf.join("")
1159
- end
1160
- end
1161
-
1162
- def thematic_break(node, opts = {})
1163
- node.extend(Helpers)
1164
- node.instance_eval do
1165
- _buf = []; _buf << ("<hr>");
1166
- ; _buf = _buf.join("")
1167
- end
1168
- end
1169
-
1170
- def inline_menu(node, opts = {})
1171
- node.extend(Helpers)
1172
- node.instance_eval do
1173
- _buf = []; if local_attr :menuitem;
1174
- ; capture do;
1175
- ; _buf << ("&#160;<span class=\"caret\">&#8250;</span>&#32;");
1176
- ;
1177
- ;
1178
- ; end; _buf << ("<kbd class=\"menuseq\"><kbd class=\"menu\"><samp>");
1179
- ;
1180
- ; _buf << ((attr :menu));
1181
- ; _buf << ("</samp></kbd>"); yield_capture;
1182
- ; (attr 'submenus').each do |submenu|;
1183
- ; _buf << ("<kbd class=\"menu\"><samp>");
1184
- ; _buf << (submenu);
1185
- ; _buf << ("</samp></kbd>"); yield_capture;
1186
- ; end; _buf << ("<kbd class=\"menu\"><samp>");
1187
- ; _buf << ((local_attr :menuitem));
1188
- ; _buf << ("</samp></kbd></kbd>"); else;
1189
- ; _buf << ("<kbd class=\"menu\"><samp>");
1190
- ; _buf << ((attr :menu));
1191
- ; _buf << ("</samp></kbd>"); end; _buf = _buf.join("")
1192
- end
1193
- end
1194
-
1195
- def embedded(node, opts = {})
1196
- node.extend(Helpers)
1197
- node.instance_eval do
1198
- _buf = []; if !notitle && header?;
1199
- ; _buf << ("<h1"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">"); _buf << (header.title);
1200
- ; _buf << ("</h1>"); end; if node.sections? && (attr? :toc) && (attr 'toc-placement', 'auto') == 'auto';
1201
- ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes2 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1202
- ; _buf << ((document.attr 'toc-title'));
1203
- ; _buf << ("</h2>");
1204
- ; _buf << (converter.convert document, 'outline');
1205
- ; _buf << ("</nav>");
1206
- ; end; _buf << (content);
1207
- ; if footnotes? && !(attr? :nofootnotes);
1208
- ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
1209
- ;
1210
- ;
1211
- ; footnotes.each do |fn|;
1212
- ; _buf << ("<li class=\"footnote\""); _slim_codeattributes3 = (footnote_id fn.index); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
1213
- ; _buf << ("#{fn.text} ");
1214
- ;
1215
- ;
1216
- ;
1217
- ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
1218
- ;
1219
- ; end; _buf << ("</ol></section>");
1220
- ; end; _buf = _buf.join("")
1221
- end
1222
- end
1223
-
1224
- def document(node, opts = {})
1225
- node.extend(Helpers)
1226
- node.instance_eval do
1227
- _buf = []; _buf << ("<!DOCTYPE html><html");
1228
- ; _slim_codeattributes1 = (attr :lang, 'en' unless attr? :nolang); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" lang"); else; _buf << (" lang=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">");
1229
- ;
1230
- ;
1231
- ;
1232
- ;
1233
- ; document_content = content;
1234
- ; _buf << ("<head><meta");
1235
- ; _slim_codeattributes2 = (attr :encoding, 'UTF-8'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" charset"); else; _buf << (" charset=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << ("><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta name=\"generator\" content=\"Asciidoctor ");
1236
- ;
1237
- ;
1238
- ; _buf << (attr 'asciidoctor-version'); _buf << ("\">");
1239
- ; _buf << (html_meta_if 'application-name', (attr 'app-name'));
1240
- ; _buf << (html_meta_if 'author', (attr :authors));
1241
- ; _buf << (html_meta_if 'copyright', (attr :copyright));
1242
- ; _buf << (html_meta_if 'description', (attr :description));
1243
- ; _buf << (html_meta_if 'keywords', (attr :keywords));
1244
- ; _buf << ("<title>"); _buf << (((doctitle sanitize: true) || (attr 'untitled-label')));
1245
- ; _buf << ("</title>"); _buf << (styles_and_scripts);
1246
- ; unless (docinfo_content = docinfo).empty?;
1247
- ; _buf << (docinfo_content);
1248
- ; end; _buf << ("</head><body");
1249
- ;
1250
- ;
1251
- ; _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes4 = [(attr :doctype),
1252
- ("#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" if (attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto')),
1253
- (attr :docrole) || (attr :role)]; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes4.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes4); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes5 = style_value(max_width: (attr 'max-width')); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" style"); else; _buf << (" style=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _buf << (">");
1254
- ; unless (docinfo_content = (docinfo :header)).empty?;
1255
- ; _buf << (docinfo_content);
1256
- ; end; unless noheader;
1257
- ; _buf << ("<header>");
1258
- ; if header?;
1259
- ; unless notitle;
1260
- ; _buf << ("<h1>"); _buf << (header.title);
1261
- ; _buf << ("</h1>"); end; if [:author, :revnumber, :revdate, :revremark].any? {|a| attr? a };
1262
- ; _buf << ("<div class=\"details\">");
1263
- ; if attr? :author;
1264
- ; _buf << ("<span class=\"author\" id=\"author\">"); _buf << ((attr :author));
1265
- ; _buf << ("</span><br>");
1266
- ; if attr? :email;
1267
- ; _buf << ("<span class=\"email\" id=\"email\">"); _buf << (sub_macros(attr :email));
1268
- ; _buf << ("</span><br>");
1269
- ; end; if (authorcount = (attr :authorcount).to_i) > 1;
1270
- ; (2..authorcount).each do |idx|;
1271
- ; _buf << ("<span class=\"author\" id=\"author"); _buf << (idx); _buf << ("\">"); _buf << ((attr "author_#{idx}"));
1272
- ; _buf << ("</span><br>");
1273
- ; if attr? "email_#{idx}";
1274
- ; _buf << ("<span class=\"email\" id=\"email"); _buf << (idx); _buf << ("\">"); _buf << (sub_macros(attr "email_#{idx}"));
1275
- ; _buf << ("</span>"); end; end; end; end; if attr? :revnumber;
1276
- ; _buf << ("<span id=\"revnumber\">"); _buf << (((attr 'version-label') || '').downcase); _buf << (" "); _buf << (attr :revnumber); _buf << (',' if attr? :revdate); _buf << ("</span> ");
1277
- ;
1278
- ; end; if attr? :revdate;
1279
- ; _buf << ("<time id=\"revdate\""); _slim_codeattributes6 = revdate_iso; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" datetime"); else; _buf << (" datetime=\""); _buf << (_slim_codeattributes6); _buf << ("\""); end; end; _buf << (">"); _buf << ((attr :revdate));
1280
- ; _buf << ("</time>"); end; if attr? :revremark;
1281
- ; _buf << ("<br><span id=\"revremark\">");
1282
- ; _buf << ((attr :revremark));
1283
- ; _buf << ("</span>"); end; _buf << ("</div>"); end; end; if (attr? :toc) && (attr? 'toc-placement', 'auto');
1284
- ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover2 = []; _slim_codeattributes7 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes7; _slim_codeattributes7 = _slim_codeattributes7.flatten; _slim_codeattributes7.map!(&:to_s); _slim_codeattributes7.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes7.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes7); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1285
- ; _buf << ((document.attr 'toc-title'));
1286
- ; _buf << ("</h2>");
1287
- ; _buf << (converter.convert document, 'outline');
1288
- ; _buf << ("</nav>");
1289
- ; end;
1290
- ; _buf << ("</header>"); end; _buf << ("<div id=\"content\">"); _buf << (document_content);
1291
- ; _buf << ("</div>"); unless !footnotes? || (attr? :nofootnotes);
1292
- ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
1293
- ;
1294
- ;
1295
- ; footnotes.each do |fn|;
1296
- ; _buf << ("<li class=\"footnote\""); _slim_codeattributes8 = (footnote_id fn.index); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
1297
- ; _buf << ("#{fn.text} ");
1298
- ;
1299
- ;
1300
- ;
1301
- ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
1302
- ;
1303
- ; end; _buf << ("</ol></section>");
1304
- ; end; unless nofooter;
1305
- ; _buf << ("<footer><div id=\"footer-text\">");
1306
- ;
1307
- ; if attr? :revnumber;
1308
- ; _buf << (attr 'version-label'); _buf << (" "); _buf << (attr :revnumber);
1309
- ; end; if attr? 'last-update-label';
1310
- ; _buf << ("<br>");
1311
- ; _buf << (attr 'last-update-label'); _buf << (" "); _buf << (attr :docdatetime);
1312
- ; end; _buf << ("</div>"); unless (docinfo_content = (docinfo :footer)).empty?;
1313
- ; _buf << (docinfo_content);
1314
- ; end;
1315
- ; _buf << ("</footer>"); end; _buf << ("</body></html>"); _buf = _buf.join("")
1308
+ def inline_break(node, opts = {})
1309
+ node.extend(Helpers)
1310
+ node.instance_eval do
1311
+ _buf = []; _buf << (text);
1312
+ ; _buf << ("<br>");
1313
+ ; _buf = _buf.join("")
1316
1314
  end
1317
1315
  end
1318
1316
 
1319
- def video(node, opts = {})
1317
+ def audio(node, opts = {})
1320
1318
  node.extend(Helpers)
1321
1319
  node.instance_eval do
1322
- _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'video-block' do; _slim_controls2 = [];
1323
- ; if video_iframe?;
1324
- ;
1325
- ;
1326
- ;
1327
- ;
1328
- ;
1329
- ; _slim_controls2 << ("<iframe"); _slim_codeattributes1 = video_uri; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (attr :width); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = (attr :height); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = 0; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" frameborder"); else; _slim_controls2 << (" frameborder=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_codeattributes5 = !(option? 'nofullscreen'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" allowfullscreen"); else; _slim_controls2 << (" allowfullscreen=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></iframe>");
1330
- ; else;
1331
- ;
1332
- ;
1333
- ;
1334
- ;
1320
+ _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'audio-block' do; _slim_controls2 = [];
1335
1321
  ;
1336
1322
  ;
1337
1323
  ;
1338
1324
  ;
1339
- ; _slim_controls2 << ("<video"); _slim_codeattributes6 = video_uri; if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (media_uri(attr :poster) if attr? :poster); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" poster"); else; _slim_controls2 << (" poster=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _slim_codeattributes10 = (option? 'autoplay'); if _slim_codeattributes10; if _slim_codeattributes10 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes10); _slim_controls2 << ("\""); end; end; _slim_codeattributes11 = (option? 'muted'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _slim_controls2 << (" muted"); else; _slim_controls2 << (" muted=\""); _slim_controls2 << (_slim_codeattributes11); _slim_controls2 << ("\""); end; end; _slim_codeattributes12 = !(option? 'nocontrols'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes12); _slim_controls2 << ("\""); end; end; _slim_codeattributes13 = (option? 'loop'); if _slim_codeattributes13; if _slim_codeattributes13 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes13); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the video tag.</video>");
1325
+ ; _slim_controls2 << ("<audio"); _slim_codeattributes1 = media_uri(attr :target); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (option? 'autoplay'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = !(option? 'nocontrols'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'loop'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the audio tag.</audio>");
1340
1326
  ;
1341
- ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1327
+ ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1342
1328
  end
1343
1329
  end
1344
1330
 
1345
- def ulist(node, opts = {})
1331
+ def open(node, opts = {})
1346
1332
  node.extend(Helpers)
1347
1333
  node.instance_eval do
1348
- _buf = []; checklist = 'task-list' if option? 'checklist';
1349
- ; _slim_controls1 = block_with_title :class=>['ulist', style] do; _slim_controls2 = [];
1350
- ; _slim_controls2 << ("<ul"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = (checklist || style); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1351
- ; items.each do |item|;
1352
- ; if checklist && (item.attr? :checkbox);
1353
- ; _slim_controls2 << ("<li"); _temple_html_attributeremover2 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "task-list-item"; _temple_html_attributemerger1[1] = []; _slim_codeattributes2 = item.role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes2.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes2); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover2 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes3 = item.id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("><input class=\"task-list-item-checkbox\" type=\"checkbox\" disabled");
1354
- ; _slim_codeattributes4 = (item.attr? :checked); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" checked"); else; _slim_controls2 << (" checked=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("> ");
1355
- ; _slim_controls2 << (item.text);
1356
- ; _slim_controls2 << ("</li>"); else;
1357
- ; _slim_controls2 << ("<li"); _slim_codeattributes5 = item.id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" id"); else; _slim_controls2 << (" id=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes6 = item.role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes6); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_controls2 << (">");
1358
- ; _slim_controls2 << ((print_item_content item));
1359
- ; _slim_controls2 << ("</li>"); end; end; _slim_controls2 << ("</ul>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1334
+ _buf = []; if style == 'abstract';
1335
+ ; if abstract_allowed?;
1336
+ ; _slim_controls1 = block_with_title :class=>'quote-block abstract' do; _slim_controls2 = [];
1337
+ ; _slim_controls2 << ("<blockquote>"); _slim_controls2 << (content);
1338
+ ; _slim_controls2 << ("</blockquote>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; elsif style != 'partintro' || partintro_allowed?;
1339
+ ; _slim_controls3 = block_with_title :class=>['open-block', (style if style != 'open')] do; _slim_controls4 = [];
1340
+ ; _slim_controls4 << ("<div class=\"content\">"); _slim_controls4 << (content);
1341
+ ; _slim_controls4 << ("</div>"); _slim_controls4 = _slim_controls4.join(""); end; _buf << (_slim_controls3); end; _buf = _buf.join("")
1360
1342
  end
1361
1343
  end
1362
1344
 
1363
- def inline_button(node, opts = {})
1345
+ def table(node, opts = {})
1364
1346
  node.extend(Helpers)
1365
1347
  node.instance_eval do
1366
- _buf = []; _buf << ("<kbd class=\"button\"><samp>");
1367
- ; _buf << (text);
1368
- ; _buf << ("</samp></kbd>"); _buf = _buf.join("")
1348
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'table-block' do; _slim_controls2 = [];
1349
+ ;
1350
+ ;
1351
+ ; _slim_controls2 << ("<table"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = ["frame-#{attr :frame, 'all'}", "grid-#{attr :grid, 'all'}", stretch?, ("stripes-#{attr :stripes}" if attr? :stripes)]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = style_value(width: ("#{attr :tablepcwidth}%" if !autowidth? && !stretch? || (local_attr :width)),
1352
+ float: (attr :float)); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1353
+ ; unless (attr :rowcount).zero?;
1354
+ ; _slim_controls2 << ("<colgroup>");
1355
+ ; if autowidth?;
1356
+ ; columns.each do;
1357
+ ; _slim_controls2 << ("<col>");
1358
+ ; end; else;
1359
+ ; columns.each do |col|;
1360
+ ; _slim_controls2 << ("<col"); _slim_codeattributes3 = style_value(width: ("#{col.attr :colpcwidth}%" if !autowidth? col)); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1361
+ ; end; end; _slim_controls2 << ("</colgroup>"); [:head, :foot, :body].reject { |tblsec| rows[tblsec].empty? }.each do |tblsec|;
1362
+ ; _slim_controls2 << ("<t"); _slim_controls2 << (tblsec); _slim_controls2 << (">");
1363
+ ; rows[tblsec].each do |row|;
1364
+ ; _slim_controls2 << ("<tr>");
1365
+ ; row.each do |cell|;
1366
+ ; _slim_controls3 = html_tag(tblsec == :head || cell.style == :header ? 'th' : 'td',
1367
+ :class=>["halign-#{cell.attr :halign}", "valign-#{cell.attr :valign}"],
1368
+ :colspan=>cell.colspan,
1369
+ :rowspan=>cell.rowspan,
1370
+ :style=>style_value(background_color: (document.attr :cellbgcolor))) do; _slim_controls4 = [];
1371
+ ; if tblsec == :head;
1372
+ ; _slim_controls4 << (cell.text);
1373
+ ; else;
1374
+ ; case cell.style;
1375
+ ; when :asciidoc;
1376
+ ; _slim_controls4 << (cell.content);
1377
+ ; when :literal;
1378
+ ; _slim_controls4 << ("<div class=\"literal\"><pre>"); _slim_controls4 << (cell.text);
1379
+ ; _slim_controls4 << ("</pre></div>"); else;
1380
+ ; if (content = cell.content).one?;
1381
+ ; _slim_controls4 << (content.first);
1382
+ ; else;
1383
+ ; content.each do |text|;
1384
+ ; _slim_controls4 << ("<p>"); _slim_controls4 << (text);
1385
+ ; _slim_controls4 << ("</p>"); end; end; end; end; _slim_controls4 = _slim_controls4.join(""); end; _slim_controls2 << (_slim_controls3); end; _slim_controls2 << ("</tr>"); end; _slim_controls2 << ("</t"); _slim_controls2 << (tblsec); _slim_controls2 << (">");
1386
+ ; end; end; _slim_controls2 << ("</table>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1369
1387
  end
1370
1388
  end
1371
1389
 
1372
- def audio(node, opts = {})
1390
+ def inline_anchor(node, opts = {})
1373
1391
  node.extend(Helpers)
1374
1392
  node.instance_eval do
1375
- _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'audio-block' do; _slim_controls2 = [];
1376
- ;
1377
- ;
1378
- ;
1379
- ;
1380
- ; _slim_controls2 << ("<audio"); _slim_codeattributes1 = media_uri(attr :target); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (option? 'autoplay'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = !(option? 'nocontrols'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = (option? 'loop'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the audio tag.</audio>");
1381
- ;
1382
- ; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1393
+ _buf = []; case type;
1394
+ ; when :xref;
1395
+ ; _buf << ("<a"); _slim_codeattributes1 = target; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">"); _buf << (xref_text);
1396
+ ; _buf << ("</a>"); when :ref;
1397
+ ; _buf << ("<a"); _slim_codeattributes3 = id; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1398
+ ; when :bibref;
1399
+ ; _buf << ("<a"); _slim_codeattributes4 = id; if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes4); _buf << ("\""); end; end; _buf << (" aria-hidden=\"true\"></a>");
1400
+ ; _buf << (bibref_text);
1401
+ ; else;
1402
+ ; _buf << ("<a"); _slim_codeattributes5 = id; if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes5); _buf << ("\""); end; end; _temple_html_attributeremover2 = []; _slim_codeattributes6 = role; if Array === _slim_codeattributes6; _slim_codeattributes6 = _slim_codeattributes6.flatten; _slim_codeattributes6.map!(&:to_s); _slim_codeattributes6.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes6.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes6); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover2); _buf << ("\""); end; _slim_codeattributes7 = target; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" href"); else; _buf << (" href=\""); _buf << (_slim_codeattributes7); _buf << ("\""); end; end; _slim_codeattributes8 = (attr :window); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" target"); else; _buf << (" target=\""); _buf << (_slim_codeattributes8); _buf << ("\""); end; end; _slim_codeattributes9 = link_rel; if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" rel"); else; _buf << (" rel=\""); _buf << (_slim_codeattributes9); _buf << ("\""); end; end; _slim_codeattributes10 = (attr :title); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" title"); else; _buf << (" title=\""); _buf << (_slim_codeattributes10); _buf << ("\""); end; end; _buf << (">"); _buf << (text);
1403
+ ; _buf << ("</a>"); end; _buf = _buf.join("")
1383
1404
  end
1384
1405
  end
1385
1406
 
1386
- def verse(node, opts = {})
1407
+ def floating_title(node, opts = {})
1387
1408
  node.extend(Helpers)
1388
1409
  node.instance_eval do
1389
- _buf = []; _slim_controls1 = block_with_title :class=>'verse-block' do; _slim_controls2 = [];
1390
- ; if attr?(:attribution) || attr?(:citetitle);
1391
- ; _slim_controls2 << ("<blockquote class=\"verse\"><pre class=\"verse\">");
1392
- ; _slim_controls2 << (content);
1393
- ; _slim_controls2 << ("</pre><footer>&#8212; <cite>");
1394
- ;
1395
- ;
1396
- ; _slim_controls2 << ([(attr :attribution), (attr :citetitle)].compact.join(', '));
1397
- ; _slim_controls2 << ("</cite></footer></blockquote>");
1398
- ; else;
1399
- ; _slim_controls2 << ("<pre class=\"verse\">"); _slim_controls2 << (content);
1400
- ; _slim_controls2 << ("</pre>"); end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1410
+ _buf = []; _slim_htag_filter1 = ((level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = [style, role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1411
+ ; _buf << (title);
1412
+ ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf = _buf.join("")
1401
1413
  end
1402
1414
  end
1403
1415
 
@@ -1412,103 +1424,92 @@ class Asciidoctor::Html5s::Converter < ::Asciidoctor::Converter::Base
1412
1424
  end
1413
1425
  end
1414
1426
 
1415
- def literal(node, opts = {})
1416
- node.extend(Helpers)
1417
- node.instance_eval do
1418
- _buf = []; _slim_controls1 = block_with_title :class=>'literal-block' do; _slim_controls2 = [];
1419
- ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = nowrap?; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1420
- ; _slim_controls2 << ("</pre>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1421
- end
1422
- end
1423
-
1424
- def inline_image(node, opts = {})
1427
+ def page_break(node, opts = {})
1425
1428
  node.extend(Helpers)
1426
1429
  node.instance_eval do
1427
- _buf = []; _slim_controls1 = html_tag_if((attr? :link), :a, :class=>'image', :href=>(attr :link), :target=>(attr :window), :rel=>link_rel) do; _slim_controls2 = [];
1428
- ; if type == 'icon' && (document.attr? :icons, 'font');
1429
- ; _slim_controls2 << ("<i"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = [*icon_fa_classes, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_codeattributes2 = (attr :title); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></i>");
1430
- ; elsif type == 'icon' && !(document.attr? :icons);
1431
- ; _slim_controls2 << ("<b"); _temple_html_attributeremover2 = []; _slim_codeattributes3 = ['icon', role]; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover2 << (_slim_codeattributes3.join(" ")); else; _temple_html_attributeremover2 << (_slim_codeattributes3); end; _temple_html_attributeremover2 = _temple_html_attributeremover2.join(""); if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover2); _slim_controls2 << ("\""); end; _slim_codeattributes4 = (attr :title); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">[");
1432
- ; _slim_controls2 << (attr :alt); _slim_controls2 << ("]</b>");
1433
- ; else;
1434
- ;
1435
- ;
1436
- ; _slim_controls2 << ("<img"); _slim_codeattributes5 = (type == 'icon' ? (icon_uri target) : (image_uri target)); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_codeattributes6 = (attr :alt); if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" alt"); else; _slim_controls2 << (" alt=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (attr :title); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" title"); else; _slim_controls2 << (" title=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _slim_codeattributes10 = (attr :loading); if _slim_codeattributes10; if _slim_codeattributes10 == true; _slim_controls2 << (" loading"); else; _slim_controls2 << (" loading=\""); _slim_controls2 << (_slim_codeattributes10); _slim_controls2 << ("\""); end; end; _temple_html_attributeremover3 = []; _slim_codeattributes11 = [(type if type != 'image'), role]; if Array === _slim_codeattributes11; _slim_codeattributes11 = _slim_codeattributes11.flatten; _slim_codeattributes11.map!(&:to_s); _slim_codeattributes11.reject!(&:empty?); _temple_html_attributeremover3 << (_slim_codeattributes11.join(" ")); else; _temple_html_attributeremover3 << (_slim_codeattributes11); end; _temple_html_attributeremover3 = _temple_html_attributeremover3.join(""); if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover3); _slim_controls2 << ("\""); end; _slim_codeattributes12 = style_value(float: (attr :float)); if _slim_codeattributes12; if _slim_codeattributes12 == true; _slim_controls2 << (" style"); else; _slim_controls2 << (" style=\""); _slim_controls2 << (_slim_codeattributes12); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">");
1437
- ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1430
+ _buf = []; _buf << ("<div role=\"doc-pagebreak\" style=\"page-break-after: always;\"></div>");
1431
+ ; _buf = _buf.join("")
1438
1432
  end
1439
1433
  end
1440
1434
 
1441
- def outline(node, opts = {})
1435
+ def literal(node, opts = {})
1442
1436
  node.extend(Helpers)
1443
1437
  node.instance_eval do
1444
- _buf = []; unless sections.empty?;
1445
- ;
1446
- ; toclevels ||= opts[:toclevels] || (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i;
1447
- ; slevel = section_level sections.first;
1448
- ; _buf << ("<ol class=\"toc-list level-"); _buf << (slevel); _buf << ("\">");
1449
- ; sections.each do |sec|;
1450
- ; _buf << ("<li><a href=\"#");
1451
- ; _buf << (sec.id); _buf << ("\">"); _buf << ((section_title sec, drop_anchors: true));
1452
- ; _buf << ("</a>"); if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline');
1453
- ; _buf << (child_toc);
1454
- ; end; _buf << ("</li>"); end; _buf << ("</ol>"); end; _buf = _buf.join("")
1438
+ _buf = []; _slim_controls1 = block_with_title :class=>'literal-block' do; _slim_controls2 = [];
1439
+ ; _slim_controls2 << ("<pre"); _temple_html_attributeremover1 = []; _slim_codeattributes1 = nowrap?; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes1.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes1); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\""); _slim_controls2 << (_temple_html_attributeremover1); _slim_controls2 << ("\""); end; _slim_controls2 << (">"); _slim_controls2 << (content);
1440
+ ; _slim_controls2 << ("</pre>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1455
1441
  end
1456
1442
  end
1457
1443
 
1458
- def example(node, opts = {})
1444
+ def inline_callout(node, opts = {})
1459
1445
  node.extend(Helpers)
1460
1446
  node.instance_eval do
1461
- _buf = []; if option? :collapsible;
1462
- ; _buf << ("<details"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = role; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes3 = (option? :open); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" open"); else; _buf << (" open=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (">");
1463
- ; if title;
1464
- ; _buf << ("<summary>");
1465
- ; _buf << (title);
1466
- ; _buf << ("</summary>"); end; _buf << ("<div class=\"content\">");
1467
- ; _buf << (content);
1468
- ; _buf << ("</div></details>"); else;
1469
- ; _slim_controls1 = block_with_caption :top, :class=>'example-block' do; _slim_controls2 = [];
1470
- ; _slim_controls2 << ("<div class=\"example\">");
1471
- ; _slim_controls2 << (content);
1472
- ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); end; _buf = _buf.join("")
1447
+ _buf = []; _buf << ("<b class=\"conum\">"); _buf << (text);
1448
+ ; _buf << ("</b>"); _buf = _buf.join("")
1473
1449
  end
1474
1450
  end
1475
1451
 
1476
- def colist(node, opts = {})
1452
+ def embedded(node, opts = {})
1477
1453
  node.extend(Helpers)
1478
1454
  node.instance_eval do
1479
- _buf = [];
1480
- ; _buf << ("<ol"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "callout-list"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = [style, role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1481
- ; items.each do |item|;
1482
- ; _buf << ("<li>"); _buf << (item.text);
1483
- ; _buf << ("</li>"); end; _buf << ("</ol>"); _buf = _buf.join("")
1455
+ _buf = []; if !notitle && header?;
1456
+ ; _buf << ("<h1"); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _buf << (">"); _buf << (header.title);
1457
+ ; _buf << ("</h1>"); end; if node.sections? && (attr? :toc) && (attr 'toc-placement', 'auto') == 'auto';
1458
+ ; _buf << ("<nav id=\"toc\""); _temple_html_attributeremover1 = []; _slim_codeattributes2 = (document.attr 'toc-class', 'toc'); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (" role=\"doc-toc\"><h2 id=\"toc-title\">");
1459
+ ; _buf << ((document.attr 'toc-title'));
1460
+ ; _buf << ("</h2>");
1461
+ ; _buf << (converter.convert document, 'outline');
1462
+ ; _buf << ("</nav>");
1463
+ ; end; _buf << (content);
1464
+ ; if footnotes? && !(attr? :nofootnotes);
1465
+ ; _buf << ("<section class=\"footnotes\" aria-label=\"Footnotes\" role=\"doc-endnotes\"><hr><ol class=\"footnotes\">");
1466
+ ;
1467
+ ;
1468
+ ; footnotes.each do |fn|;
1469
+ ; _buf << ("<li class=\"footnote\""); _slim_codeattributes3 = (footnote_id fn.index); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes3); _buf << ("\""); end; end; _buf << (" role=\"doc-endnote\">");
1470
+ ; _buf << ("#{fn.text} ");
1471
+ ;
1472
+ ;
1473
+ ;
1474
+ ; _buf << ("<a class=\"footnote-backref\" href=\"#"); _buf << (footnoteref_id fn.index); _buf << ("\" role=\"doc-backlink\" title=\"Jump to the first occurrence in the text\">&#8617;</a></li>");
1475
+ ;
1476
+ ; end; _buf << ("</ol></section>");
1477
+ ; end; _buf = _buf.join("")
1484
1478
  end
1485
1479
  end
1486
1480
 
1487
- def section(node, opts = {})
1481
+ def stem(node, opts = {})
1488
1482
  node.extend(Helpers)
1489
1483
  node.instance_eval do
1490
- _buf = []; _buf << ("<section"); _temple_html_attributeremover1 = []; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "doc-section"; _temple_html_attributemerger1[1] = []; _slim_codeattributes1 = ["level-#{section_level}", role]; if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributemerger1[1] << (_slim_codeattributes1.join(" ")); else; _temple_html_attributemerger1[1] << (_slim_codeattributes1); end; _temple_html_attributemerger1[1] = _temple_html_attributemerger1[1].join(""); _temple_html_attributeremover1 << (_temple_html_attributemerger1.reject(&:empty?).join(" ")); _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1491
- ; _slim_htag_filter1 = ((section_level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes2 = id; if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes2); _buf << ("\""); end; end; _buf << (">");
1492
- ; if id;
1493
- ; if document.attr? :sectanchors;
1494
- ; _buf << ("<a class=\"anchor\" href=\"#"); _buf << (id); _buf << ("\" aria-hidden=\"true\"></a>");
1495
- ; end; if document.attr? :sectlinks;
1496
- ; _buf << ("<a class=\"link\" href=\"#"); _buf << (id); _buf << ("\">"); _buf << (section_title);
1497
- ; _buf << ("</a>"); else;
1498
- ; _buf << (section_title);
1499
- ; end; else;
1500
- ; _buf << (section_title);
1501
- ; end; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf << (content);
1502
- ; _buf << ("</section>"); _buf = _buf.join("")
1484
+ _buf = []; _slim_controls1 = block_with_caption :top, :class=>'stem-block' do; _slim_controls2 = [];
1485
+ ; _slim_controls2 << ("<div class=\"math\""); _slim_codeattributes1 = stem_lang; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-lang"); else; _slim_controls2 << (" data-lang=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">"); _slim_controls2 << ((delimit_stem content, style));
1486
+ ; _slim_controls2 << ("</div>"); _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1503
1487
  end
1504
1488
  end
1505
1489
 
1506
- def floating_title(node, opts = {})
1490
+ def video(node, opts = {})
1507
1491
  node.extend(Helpers)
1508
1492
  node.instance_eval do
1509
- _buf = []; _slim_htag_filter1 = ((level + 1)).to_s; _buf << ("<h"); _buf << (_slim_htag_filter1); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id"); else; _buf << (" id=\""); _buf << (_slim_codeattributes1); _buf << ("\""); end; end; _temple_html_attributeremover1 = []; _slim_codeattributes2 = [style, role]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << (_slim_codeattributes2.join(" ")); else; _temple_html_attributeremover1 << (_slim_codeattributes2); end; _temple_html_attributeremover1 = _temple_html_attributeremover1.join(""); if !_temple_html_attributeremover1.empty?; _buf << (" class=\""); _buf << (_temple_html_attributeremover1); _buf << ("\""); end; _buf << (">");
1510
- ; _buf << (title);
1511
- ; _buf << ("</h"); _buf << (_slim_htag_filter1); _buf << (">"); _buf = _buf.join("")
1493
+ _buf = []; _slim_controls1 = block_with_caption :bottom, :class=>'video-block' do; _slim_controls2 = [];
1494
+ ; if video_iframe?;
1495
+ ;
1496
+ ;
1497
+ ;
1498
+ ;
1499
+ ;
1500
+ ; _slim_controls2 << ("<iframe"); _slim_codeattributes1 = video_uri; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes1); _slim_controls2 << ("\""); end; end; _slim_codeattributes2 = (attr :width); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes2); _slim_controls2 << ("\""); end; end; _slim_codeattributes3 = (attr :height); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes3); _slim_controls2 << ("\""); end; end; _slim_codeattributes4 = 0; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" frameborder"); else; _slim_controls2 << (" frameborder=\""); _slim_controls2 << (_slim_codeattributes4); _slim_controls2 << ("\""); end; end; _slim_codeattributes5 = !(option? 'nofullscreen'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" allowfullscreen"); else; _slim_controls2 << (" allowfullscreen=\""); _slim_controls2 << (_slim_codeattributes5); _slim_controls2 << ("\""); end; end; _slim_controls2 << ("></iframe>");
1501
+ ; else;
1502
+ ;
1503
+ ;
1504
+ ;
1505
+ ;
1506
+ ;
1507
+ ;
1508
+ ;
1509
+ ;
1510
+ ; _slim_controls2 << ("<video"); _slim_codeattributes6 = video_uri; if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" src"); else; _slim_controls2 << (" src=\""); _slim_controls2 << (_slim_codeattributes6); _slim_controls2 << ("\""); end; end; _slim_codeattributes7 = (attr :width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width"); else; _slim_controls2 << (" width=\""); _slim_controls2 << (_slim_codeattributes7); _slim_controls2 << ("\""); end; end; _slim_codeattributes8 = (attr :height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height"); else; _slim_controls2 << (" height=\""); _slim_controls2 << (_slim_codeattributes8); _slim_controls2 << ("\""); end; end; _slim_codeattributes9 = (media_uri(attr :poster) if attr? :poster); if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" poster"); else; _slim_controls2 << (" poster=\""); _slim_controls2 << (_slim_codeattributes9); _slim_controls2 << ("\""); end; end; _slim_codeattributes10 = (option? 'autoplay'); if _slim_codeattributes10; if _slim_codeattributes10 == true; _slim_controls2 << (" autoplay"); else; _slim_controls2 << (" autoplay=\""); _slim_controls2 << (_slim_codeattributes10); _slim_controls2 << ("\""); end; end; _slim_codeattributes11 = (option? 'muted'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _slim_controls2 << (" muted"); else; _slim_controls2 << (" muted=\""); _slim_controls2 << (_slim_codeattributes11); _slim_controls2 << ("\""); end; end; _slim_codeattributes12 = !(option? 'nocontrols'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _slim_controls2 << (" controls"); else; _slim_controls2 << (" controls=\""); _slim_controls2 << (_slim_codeattributes12); _slim_controls2 << ("\""); end; end; _slim_codeattributes13 = (option? 'loop'); if _slim_codeattributes13; if _slim_codeattributes13 == true; _slim_controls2 << (" loop"); else; _slim_controls2 << (" loop=\""); _slim_controls2 << (_slim_codeattributes13); _slim_controls2 << ("\""); end; end; _slim_controls2 << (">Your browser does not support the video tag.</video>");
1511
+ ;
1512
+ ; end; _slim_controls2 = _slim_controls2.join(""); end; _buf << (_slim_controls1); _buf = _buf.join("")
1512
1513
  end
1513
1514
  end
1514
1515
  #------------------ End of generated transformation methods ------------------#