Class: Asciidoctor::Revealjs::Converter

Inherits:
Converter::Base
  • Object
show all
Defined in:
lib/asciidoctor-revealjs/converter.rb

Defined Under Namespace

Modules: Helpers

Instance Method Summary collapse

Constructor Details

#initialize(backend, opts = {}) ⇒ Converter

Returns a new instance of Converter.



485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# File 'lib/asciidoctor-revealjs/converter.rb', line 485

def initialize(backend, opts = {})
  super
  basebackend "html" if respond_to? :basebackend
  outfilesuffix ".html" if respond_to? :outfilesuffix
  filetype "html" if respond_to? :filetype
  supports_templates if respond_to? :supports_templates

  delegate_backend = (opts[:delegate_backend] || "html5").to_s
  factory = ::Asciidoctor::Converter::Factory

  converter = factory.create(delegate_backend, backend_info)
  @delegate_converter = if converter == self
    factory.new.create(delegate_backend, backend_info)
  else
    converter
  end
end

Instance Method Details

#convert(node, transform = nil, opts = {}) ⇒ Object



503
504
505
506
507
508
509
510
511
512
513
# File 'lib/asciidoctor-revealjs/converter.rb', line 503

def convert(node, transform = nil, opts = {})
  meth_name = "convert_#{transform || node.node_name}"
  opts ||= {}
  converter = respond_to?(meth_name) ? self : @delegate_converter

  if opts.empty?
    converter.send(meth_name, node)
  else
    converter.send(meth_name, node, opts)
  end
end

#convert_admonition(node, opts = {}) ⇒ Object



1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
# File 'lib/asciidoctor-revealjs/converter.rb', line 1468

def convert_admonition(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if (has_role? 'aside') or (has_role? 'speaker') or (has_role? 'notes'); 
    ; _buf << ("<aside class=\"notes\">".freeze); _buf << ((resolve_content).to_s); 
    ; _buf << ("</aside>".freeze); 
    ; else; 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['admonitionblock', (attr :name), role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ("<table><tr><td class=\"icon\">".freeze); 
    ; 
    ; if @document.attr? :icons, 'font'; 
    ; icon_mapping = Hash['caution', 'fire', 'important', 'exclamation-circle', 'note', 'info-circle', 'tip', 'lightbulb-o', 'warning', 'warning']; 
    ; _slim_controls2 << ("<i".freeze); _temple_html_attributeremover1 = ''; _slim_codeattributes1 = %(fa fa-#{icon_mapping[attr :name]}); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << ((_slim_codeattributes1.join(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover1).to_s); _slim_controls2 << ("\"".freeze); end; _slim_codeattributes2 = (attr :textlabel || @caption); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" title".freeze); else; _slim_controls2 << (" title=\"".freeze); _slim_controls2 << ((_slim_codeattributes2).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << ("></i>".freeze); 
    ; elsif @document.attr? :icons; 
    ; _slim_controls2 << ("<img".freeze); _slim_codeattributes3 = icon_uri(attr :name); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes4 = @caption; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" alt".freeze); else; _slim_controls2 << (" alt=\"".freeze); _slim_controls2 << ((_slim_codeattributes4).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">".freeze); 
    ; else; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << (((attr :textlabel) || @caption).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("</td><td class=\"content\">".freeze); 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</td></tr></table>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); end; _buf
  end
end

#convert_audio(node, opts = {}) ⇒ Object



1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
# File 'lib/asciidoctor-revealjs/converter.rb', line 1781

def convert_audio(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['audioblock', @style, role] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((captioned_title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<div class=\"content\"><audio".freeze); 
    ; _slim_codeattributes1 = media_uri(attr :target); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes1).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes2 = (option? 'autoplay'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" autoplay".freeze); else; _slim_controls2 << (" autoplay=\"".freeze); _slim_controls2 << ((_slim_codeattributes2).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes3 = !(option? 'nocontrols'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" controls".freeze); else; _slim_controls2 << (" controls=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes4 = (option? 'loop'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" loop".freeze); else; _slim_controls2 << (" loop=\"".freeze); _slim_controls2 << ((_slim_codeattributes4).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">Your browser does not support the audio tag.</audio></div>".freeze); 
    ; 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_colist(node, opts = {}) ⇒ Object



540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/asciidoctor-revealjs/converter.rb', line 540

def convert_colist(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['colist', @style, role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; if @document.attr? :icons; 
    ; font_icons = @document.attr? :icons, 'font'; 
    ; _slim_controls2 << ("<table>".freeze); 
    ; items.each_with_index do |item, i|; 
    ; num = i + 1; 
    ; _slim_controls2 << ("<tr><td>".freeze); 
    ; 
    ; if font_icons; 
    ; _slim_controls2 << ("<i class=\"conum\"".freeze); _slim_codeattributes1 = num; if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" data-value".freeze); else; _slim_controls2 << (" data-value=\"".freeze); _slim_controls2 << ((_slim_codeattributes1).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << ("></i><b>".freeze); 
    ; _slim_controls2 << ((num).to_s); 
    ; _slim_controls2 << ("</b>".freeze); else; 
    ; _slim_controls2 << ("<img".freeze); _slim_codeattributes2 = icon_uri("callouts/#{num}"); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes2).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes3 = num; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" alt".freeze); else; _slim_controls2 << (" alt=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">".freeze); 
    ; end; _slim_controls2 << ("</td><td>".freeze); _slim_controls2 << ((item.text).to_s); 
    ; _slim_controls2 << ("</td></tr>".freeze); end; _slim_controls2 << ("</table>".freeze); else; 
    ; _slim_controls2 << ("<ol>".freeze); 
    ; items.each do |item|; 
    ; _slim_controls2 << ("<li><p>".freeze); _slim_controls2 << ((item.text).to_s); 
    ; _slim_controls2 << ("</p></li>".freeze); end; _slim_controls2 << ("</ol>".freeze); end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_dlist(node, opts = {}) ⇒ Object



695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
# File 'lib/asciidoctor-revealjs/converter.rb', line 695

def convert_dlist(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; case @style; 
    ; when 'qanda'; 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['qlist', @style, role] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<ol>".freeze); 
    ; items.each do |questions, answer|; 
    ; _slim_controls2 << ("<li>".freeze); 
    ; [*questions].each do |question|; 
    ; _slim_controls2 << ("<p><em>".freeze); _slim_controls2 << ((question.text).to_s); 
    ; _slim_controls2 << ("</em></p>".freeze); end; unless answer.nil?; 
    ; if answer.text?; 
    ; _slim_controls2 << ("<p>".freeze); _slim_controls2 << ((answer.text).to_s); 
    ; _slim_controls2 << ("</p>".freeze); end; if answer.blocks?; 
    ; _slim_controls2 << ((answer.content).to_s); 
    ; end; end; _slim_controls2 << ("</li>".freeze); end; _slim_controls2 << ("</ol>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); when 'horizontal'; 
    ; _slim_controls3 = html_tag('div', { :id => @id, :class => ['hdlist', role] }.merge(data_attrs(@attributes))) do; _slim_controls4 = ''; 
    ; if title?; 
    ; _slim_controls4 << ("<div class=\"title\">".freeze); _slim_controls4 << ((title).to_s); 
    ; _slim_controls4 << ("</div>".freeze); end; _slim_controls4 << ("<table>".freeze); 
    ; if (attr? :labelwidth) || (attr? :itemwidth); 
    ; _slim_controls4 << ("<colgroup><col".freeze); 
    ; _slim_codeattributes1 = ((attr? :labelwidth) ? %(width:#{(attr :labelwidth).chomp '%'}%;) : nil); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls4 << (" style".freeze); else; _slim_controls4 << (" style=\"".freeze); _slim_controls4 << ((_slim_codeattributes1).to_s); _slim_controls4 << ("\"".freeze); end; end; _slim_controls4 << ("><col".freeze); 
    ; _slim_codeattributes2 = ((attr? :itemwidth) ? %(width:#{(attr :itemwidth).chomp '%'}%;) : nil); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls4 << (" style".freeze); else; _slim_controls4 << (" style=\"".freeze); _slim_controls4 << ((_slim_codeattributes2).to_s); _slim_controls4 << ("\"".freeze); end; end; _slim_controls4 << ("></colgroup>".freeze); 
    ; end; items.each do |terms, dd|; 
    ; _slim_controls4 << ("<tr><td".freeze); 
    ; _temple_html_attributeremover1 = ''; _slim_codeattributes3 = ['hdlist1',('strong' if option? 'strong')]; if Array === _slim_codeattributes3; _slim_codeattributes3 = _slim_codeattributes3.flatten; _slim_codeattributes3.map!(&:to_s); _slim_codeattributes3.reject!(&:empty?); _temple_html_attributeremover1 << ((_slim_codeattributes3.join(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes3).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls4 << (" class=\"".freeze); _slim_controls4 << ((_temple_html_attributeremover1).to_s); _slim_controls4 << ("\"".freeze); end; _slim_controls4 << (">".freeze); 
    ; terms = [*terms]; 
    ; last_term = terms.last; 
    ; terms.each do |dt|; 
    ; _slim_controls4 << ((dt.text).to_s); 
    ; if dt != last_term; 
    ; _slim_controls4 << ("<br>".freeze); 
    ; end; end; _slim_controls4 << ("</td><td class=\"hdlist2\">".freeze); 
    ; unless dd.nil?; 
    ; if dd.text?; 
    ; _slim_controls4 << ("<p>".freeze); _slim_controls4 << ((dd.text).to_s); 
    ; _slim_controls4 << ("</p>".freeze); end; if dd.blocks?; 
    ; _slim_controls4 << ((dd.content).to_s); 
    ; end; end; _slim_controls4 << ("</td></tr>".freeze); end; _slim_controls4 << ("</table>".freeze); _slim_controls4; end; _buf << ((_slim_controls3).to_s); else; 
    ; _slim_controls5 = html_tag('div', { :id => @id, :class => ['dlist', @style, role] }.merge(data_attrs(@attributes))) do; _slim_controls6 = ''; 
    ; if title?; 
    ; _slim_controls6 << ("<div class=\"title\">".freeze); _slim_controls6 << ((title).to_s); 
    ; _slim_controls6 << ("</div>".freeze); end; _slim_controls6 << ("<dl>".freeze); 
    ; items.each do |terms, dd|; 
    ; [*terms].each do |dt|; 
    ; _slim_controls6 << ("<dt".freeze); _temple_html_attributeremover2 = ''; _slim_codeattributes4 = ('hdlist1' unless @style); if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover2 << ((_slim_codeattributes4.join(" ")).to_s); else; _temple_html_attributeremover2 << ((_slim_codeattributes4).to_s); end; _temple_html_attributeremover2; if !_temple_html_attributeremover2.empty?; _slim_controls6 << (" class=\"".freeze); _slim_controls6 << ((_temple_html_attributeremover2).to_s); _slim_controls6 << ("\"".freeze); end; _slim_controls6 << (">".freeze); _slim_controls6 << ((dt.text).to_s); 
    ; _slim_controls6 << ("</dt>".freeze); end; unless dd.nil?; 
    ; _slim_controls6 << ("<dd>".freeze); 
    ; if dd.text?; 
    ; _slim_controls6 << ("<p>".freeze); _slim_controls6 << ((dd.text).to_s); 
    ; _slim_controls6 << ("</p>".freeze); end; if dd.blocks?; 
    ; _slim_controls6 << ((dd.content).to_s); 
    ; end; _slim_controls6 << ("</dd>".freeze); end; end; _slim_controls6 << ("</dl>".freeze); _slim_controls6; end; _buf << ((_slim_controls5).to_s); end; _buf
  end
end

#convert_document(node, opts = {}) ⇒ Object



826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
# File 'lib/asciidoctor-revealjs/converter.rb', line 826

def convert_document(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; slides_content = self.content; 
    ; content_for :slides do; 
    ; unless noheader; 
    ; unless (header_docinfo = docinfo :header, '-revealjs.html').empty?; 
    ; _buf << ((header_docinfo).to_s); 
    ; end; if header?; 
    ; bg_image = (attr? 'title-slide-background-image') ? (image_uri(attr 'title-slide-background-image')) : nil; 
    ; bg_video = (attr? 'title-slide-background-video') ? (media_uri(attr 'title-slide-background-video')) : nil; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ("<section".freeze); _temple_html_attributeremover1 = ''; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "title"; _temple_html_attributemerger1[1] = ''; _slim_codeattributes1 = 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(" ")).to_s); else; _temple_html_attributemerger1[1] << ((_slim_codeattributes1).to_s); end; _temple_html_attributemerger1[1]; _temple_html_attributeremover1 << ((_temple_html_attributemerger1.reject(&:empty?).join(" ")).to_s); _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _buf << (" data-state=\"title\"".freeze); _slim_codeattributes2 = (attr 'title-slide-transition'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" data-transition".freeze); else; _buf << (" data-transition=\"".freeze); _buf << ((_slim_codeattributes2).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes3 = (attr 'title-slide-transition-speed'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" data-transition-speed".freeze); else; _buf << (" data-transition-speed=\"".freeze); _buf << ((_slim_codeattributes3).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes4 = (attr 'title-slide-background'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" data-background".freeze); else; _buf << (" data-background=\"".freeze); _buf << ((_slim_codeattributes4).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes5 = (attr 'title-slide-background-size'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" data-background-size".freeze); else; _buf << (" data-background-size=\"".freeze); _buf << ((_slim_codeattributes5).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes6 = bg_image; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" data-background-image".freeze); else; _buf << (" data-background-image=\"".freeze); _buf << ((_slim_codeattributes6).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes7 = bg_video; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" data-background-video".freeze); else; _buf << (" data-background-video=\"".freeze); _buf << ((_slim_codeattributes7).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes8 = (attr 'title-slide-background-video-loop'); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-background-video-loop".freeze); else; _buf << (" data-background-video-loop=\"".freeze); _buf << ((_slim_codeattributes8).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes9 = (attr 'title-slide-background-video-muted'); if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" data-background-video-muted".freeze); else; _buf << (" data-background-video-muted=\"".freeze); _buf << ((_slim_codeattributes9).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes10 = (attr 'title-slide-background-opacity'); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" data-background-opacity".freeze); else; _buf << (" data-background-opacity=\"".freeze); _buf << ((_slim_codeattributes10).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes11 = (attr 'title-slide-background-iframe'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _buf << (" data-background-iframe".freeze); else; _buf << (" data-background-iframe=\"".freeze); _buf << ((_slim_codeattributes11).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes12 = (attr 'title-slide-background-color'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _buf << (" data-background-color".freeze); else; _buf << (" data-background-color=\"".freeze); _buf << ((_slim_codeattributes12).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes13 = (attr 'title-slide-background-repeat'); if _slim_codeattributes13; if _slim_codeattributes13 == true; _buf << (" data-background-repeat".freeze); else; _buf << (" data-background-repeat=\"".freeze); _buf << ((_slim_codeattributes13).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes14 = (attr 'title-slide-background-position'); if _slim_codeattributes14; if _slim_codeattributes14 == true; _buf << (" data-background-position".freeze); else; _buf << (" data-background-position=\"".freeze); _buf << ((_slim_codeattributes14).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes15 = (attr 'title-slide-background-transition'); if _slim_codeattributes15; if _slim_codeattributes15 == true; _buf << (" data-background-transition".freeze); else; _buf << (" data-background-transition=\"".freeze); _buf << ((_slim_codeattributes15).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; if (_title_obj = doctitle partition: true, use_fallback: true).subtitle?; 
    ; _buf << ("<h1>".freeze); _buf << ((slice_text _title_obj.title, (_slice = header.option? :slice)).to_s); 
    ; _buf << ("</h1><h2>".freeze); _buf << ((slice_text _title_obj.subtitle, _slice).to_s); 
    ; _buf << ("</h2>".freeze); else; 
    ; _buf << ("<h1>".freeze); _buf << ((@header.title).to_s); 
    ; _buf << ("</h1>".freeze); end; preamble = @document.find_by context: :preamble; 
    ; unless preamble.nil? or preamble.length == 0; 
    ; _buf << ("<div class=\"preamble\">".freeze); _buf << ((preamble.pop.content).to_s); 
    ; _buf << ("</div>".freeze); end; _buf << ((generate_authors(@document)).to_s); 
    ; _buf << ("</section>".freeze); 
    ; end; end; _buf << ((slides_content).to_s); 
    ; unless (footer_docinfo = docinfo :footer, '-revealjs.html').empty?; 
    ; _buf << ((footer_docinfo).to_s); 
    ; 
    ; end; end; _buf << ("<!DOCTYPE html><html".freeze); 
    ; _slim_codeattributes16 = (attr :lang, 'en' unless attr? :nolang); if _slim_codeattributes16; if _slim_codeattributes16 == true; _buf << (" lang".freeze); else; _buf << (" lang=\"".freeze); _buf << ((_slim_codeattributes16).to_s); _buf << ("\"".freeze); end; end; _buf << ("><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui\"><title>".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; _buf << (((doctitle sanitize: true, use_fallback: true)).to_s); 
    ; 
    ; _buf << ("</title>".freeze); if RUBY_ENGINE == 'opal' && JAVASCRIPT_PLATFORM == 'node'; 
    ; revealjsdir = (attr :revealjsdir, 'node_modules/reveal.js'); 
    ; else; 
    ; revealjsdir = (attr :revealjsdir, 'reveal.js'); 
    ; end; unless (asset_uri_scheme = (attr 'asset-uri-scheme', 'https')).empty?; 
    ; asset_uri_scheme = %(#{asset_uri_scheme}:); 
    ; end; cdn_base = %(#{asset_uri_scheme}//cdnjs.cloudflare.com/ajax/libs); 
    ; [:description, :keywords, :author, :copyright].each do |key|; 
    ; if attr? key; 
    ; _buf << ("<meta".freeze); _slim_codeattributes17 = key; if _slim_codeattributes17; if _slim_codeattributes17 == true; _buf << (" name".freeze); else; _buf << (" name=\"".freeze); _buf << ((_slim_codeattributes17).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes18 = (attr key); if _slim_codeattributes18; if _slim_codeattributes18 == true; _buf << (" content".freeze); else; _buf << (" content=\"".freeze); _buf << ((_slim_codeattributes18).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; end; end; if attr? 'favicon'; 
    ; if (icon_href = attr 'favicon').empty?; 
    ; icon_href = 'favicon.ico'; 
    ; icon_type = 'image/x-icon'; 
    ; elsif (icon_ext = File.extname icon_href); 
    ; icon_type = icon_ext == '.ico' ? 'image/x-icon' : %(image/#{icon_ext.slice 1, icon_ext.length}); 
    ; else; 
    ; icon_type = 'image/x-icon'; 
    ; end; _buf << ("<link rel=\"icon\" type=\"".freeze); _buf << ((icon_type).to_s); _buf << ("\" href=\"".freeze); _buf << ((icon_href).to_s); _buf << ("\">".freeze); 
    ; end; linkcss = (attr? 'linkcss'); 
    ; _buf << ("<link rel=\"stylesheet\" href=\"".freeze); _buf << ((revealjsdir).to_s); _buf << ("/dist/reset.css\"><link rel=\"stylesheet\" href=\"".freeze); 
    ; _buf << ((revealjsdir).to_s); _buf << ("/dist/reveal.css\"><link rel=\"stylesheet\"".freeze); 
    ; 
    ; 
    ; _slim_codeattributes19 = (attr :revealjs_customtheme, %(#{revealjsdir}/dist/theme/#{attr 'revealjs_theme', 'black'}.css)); if _slim_codeattributes19; if _slim_codeattributes19 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes19).to_s); _buf << ("\"".freeze); end; end; _buf << (" id=\"theme\"><!--This CSS is generated by the Asciidoctor reveal.js converter to further integrate AsciiDoc's existing semantic with reveal.js--><style type=\"text/css\">.reveal div.right {\n  float: right\n}\n\n/* source blocks */\n.reveal .listingblock.stretch > .content {\n  height: 100%\n}\n\n.reveal .listingblock.stretch > .content > pre {\n  height: 100%\n}\n\n.reveal .listingblock.stretch > .content > pre > code {\n  height: 100%;\n  max-height: 100%\n}\n\n/* auto-animate feature */\n/* hide the scrollbar when auto-animating source blocks */\n.reveal pre[data-auto-animate-target] {\n  overflow: hidden;\n}\n\n.reveal pre[data-auto-animate-target] code {\n  overflow: hidden;\n}\n\n/* add a min width to avoid horizontal shift on line numbers */\ncode.hljs .hljs-ln-line.hljs-ln-n {\n  min-width: 1.25em;\n}\n\n/* tables */\ntable {\n  border-collapse: collapse;\n  border-spacing: 0\n}\n\ntable {\n  margin-bottom: 1.25em;\n  border: solid 1px #dedede\n}\n\ntable thead tr th, table thead tr td, table tfoot tr th, table tfoot tr td {\n  padding: .5em .625em .625em;\n  font-size: inherit;\n  text-align: left\n}\n\ntable tr th, table tr td {\n  padding: .5625em .625em;\n  font-size: inherit\n}\n\ntable thead tr th, table tfoot tr th, table tbody tr td, table tr td, table tfoot tr td {\n  display: table-cell;\n  line-height: 1.6\n}\n\ntd.tableblock > .content {\n  margin-bottom: 1.25em\n}\n\ntd.tableblock > .content > :last-child {\n  margin-bottom: -1.25em\n}\n\ntable.tableblock, th.tableblock, td.tableblock {\n  border: 0 solid #dedede\n}\n\ntable.grid-all > thead > tr > .tableblock, table.grid-all > tbody > tr > .tableblock {\n  border-width: 0 1px 1px 0\n}\n\ntable.grid-all > tfoot > tr > .tableblock {\n  border-width: 1px 1px 0 0\n}\n\ntable.grid-cols > * > tr > .tableblock {\n  border-width: 0 1px 0 0\n}\n\ntable.grid-rows > thead > tr > .tableblock, table.grid-rows > tbody > tr > .tableblock {\n  border-width: 0 0 1px\n}\n\ntable.grid-rows > tfoot > tr > .tableblock {\n  border-width: 1px 0 0\n}\n\ntable.grid-all > * > tr > .tableblock:last-child, table.grid-cols > * > tr > .tableblock:last-child {\n  border-right-width: 0\n}\n\ntable.grid-all > tbody > tr:last-child > .tableblock, table.grid-all > thead:last-child > tr > .tableblock, table.grid-rows > tbody > tr:last-child > .tableblock, table.grid-rows > thead:last-child > tr > .tableblock {\n  border-bottom-width: 0\n}\n\ntable.frame-all {\n  border-width: 1px\n}\n\ntable.frame-sides {\n  border-width: 0 1px\n}\n\ntable.frame-topbot, table.frame-ends {\n  border-width: 1px 0\n}\n\n.reveal table th.halign-left, .reveal table td.halign-left {\n  text-align: left\n}\n\n.reveal table th.halign-right, .reveal table td.halign-right {\n  text-align: right\n}\n\n.reveal table th.halign-center, .reveal table td.halign-center {\n  text-align: center\n}\n\n.reveal table th.valign-top, .reveal table td.valign-top {\n  vertical-align: top\n}\n\n.reveal table th.valign-bottom, .reveal table td.valign-bottom {\n  vertical-align: bottom\n}\n\n.reveal table th.valign-middle, .reveal table td.valign-middle {\n  vertical-align: middle\n}\n\ntable thead th, table tfoot th {\n  font-weight: bold\n}\n\ntbody tr th {\n  display: table-cell;\n  line-height: 1.6\n}\n\ntbody tr th, tbody tr th p, tfoot tr th, tfoot tr th p {\n  font-weight: bold\n}\n\nthead {\n  display: table-header-group\n}\n\n.reveal table.grid-none th, .reveal table.grid-none td {\n  border-bottom: 0 !important\n}\n\n/* kbd macro */\nkbd {\n  font-family: \"Droid Sans Mono\", \"DejaVu Sans Mono\", monospace;\n  display: inline-block;\n  color: rgba(0, 0, 0, .8);\n  font-size: .65em;\n  line-height: 1.45;\n  background: #f7f7f7;\n  border: 1px solid #ccc;\n  -webkit-border-radius: 3px;\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 0 0 .1em white inset;\n  box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 0 0 .1em #fff inset;\n  margin: 0 .15em;\n  padding: .2em .5em;\n  vertical-align: middle;\n  position: relative;\n  top: -.1em;\n  white-space: nowrap\n}\n\n.keyseq kbd:first-child {\n  margin-left: 0\n}\n\n.keyseq kbd:last-child {\n  margin-right: 0\n}\n\n/* callouts */\n.conum[data-value] {\n  display: inline-block;\n  color: #fff !important;\n  background: rgba(0, 0, 0, .8);\n  -webkit-border-radius: 50%;\n  border-radius: 50%;\n  text-align: center;\n  font-size: .75em;\n  width: 1.67em;\n  height: 1.67em;\n  line-height: 1.67em;\n  font-family: \"Open Sans\", \"DejaVu Sans\", sans-serif;\n  font-style: normal;\n  font-weight: bold\n}\n\n.conum[data-value] * {\n  color: #fff !important\n}\n\n.conum[data-value] + b {\n  display: none\n}\n\n.conum[data-value]:after {\n  content: attr(data-value)\n}\n\npre .conum[data-value] {\n  position: relative;\n  top: -.125em\n}\n\nb.conum * {\n  color: inherit !important\n}\n\n.conum:not([data-value]):empty {\n  display: none\n}\n\n/* Callout list */\n.hdlist > table, .colist > table {\n  border: 0;\n  background: none\n}\n\n.hdlist > table > tbody > tr, .colist > table > tbody > tr {\n  background: none\n}\n\ntd.hdlist1, td.hdlist2 {\n  vertical-align: top;\n  padding: 0 .625em\n}\n\ntd.hdlist1 {\n  font-weight: bold;\n  padding-bottom: 1.25em\n}\n\n/* Disabled from Asciidoctor CSS because it caused callout list to go under the\n * source listing when .stretch is applied (see #335)\n * .literalblock+.colist,.listingblock+.colist{margin-top:-.5em} */\n.colist td:not([class]):first-child {\n  padding: .4em .75em 0;\n  line-height: 1;\n  vertical-align: top\n}\n\n.colist td:not([class]):first-child img {\n  max-width: none\n}\n\n.colist td:not([class]):last-child {\n  padding: .25em 0\n}\n\n/* Override Asciidoctor CSS that causes issues with reveal.js features */\n.reveal .hljs table {\n  border: 0\n}\n\n/* Callout list rows would have a bottom border with some reveal.js themes (see #335) */\n.reveal .colist > table th, .reveal .colist > table td {\n  border-bottom: 0\n}\n\n/* Fixes line height with Highlight.js source listing when linenums enabled (see #331) */\n.reveal .hljs table thead tr th, .reveal .hljs table tfoot tr th, .reveal .hljs table tbody tr td, .reveal .hljs table tr td, .reveal .hljs table tfoot tr td {\n  line-height: inherit\n}\n\n/* Columns layout */\n.columns .slide-content {\n  display: flex;\n}\n\n.columns.wrap .slide-content {\n  flex-wrap: wrap;\n}\n\n.columns.is-vcentered .slide-content {\n  align-items: center;\n}\n\n.columns .slide-content > .column {\n  display: block;\n  flex-basis: 0;\n  flex-grow: 1;\n  flex-shrink: 1;\n}\n\n.columns .slide-content > .column > * {\n  padding: .75rem;\n}\n\n/* See #353 */\n.columns.wrap .slide-content > .column {\n  flex-basis: auto;\n}\n\n.columns .slide-content > .column.is-full {\n  flex: none;\n  width: 100%;\n}\n\n.columns .slide-content > .column.is-four-fifths {\n  flex: none;\n  width: 80%;\n}\n\n.columns .slide-content > .column.is-three-quarters {\n  flex: none;\n  width: 75%;\n}\n\n.columns .slide-content > .column.is-two-thirds {\n  flex: none;\n  width: 66.6666%;\n}\n\n.columns .slide-content > .column.is-three-fifths {\n  flex: none;\n  width: 60%;\n}\n\n.columns .slide-content > .column.is-half {\n  flex: none;\n  width: 50%;\n}\n\n.columns .slide-content > .column.is-two-fifths {\n  flex: none;\n  width: 40%;\n}\n\n.columns .slide-content > .column.is-one-third {\n  flex: none;\n  width: 33.3333%;\n}\n\n.columns .slide-content > .column.is-one-quarter {\n  flex: none;\n  width: 25%;\n}\n\n.columns .slide-content > .column.is-one-fifth {\n  flex: none;\n  width: 20%;\n}\n\n.columns .slide-content > .column.has-text-left {\n  text-align: left;\n}\n\n.columns .slide-content > .column.has-text-justified {\n  text-align: justify;\n}\n\n.columns .slide-content > .column.has-text-right {\n  text-align: right;\n}\n\n.columns .slide-content > .column.has-text-left {\n  text-align: left;\n}\n\n.columns .slide-content > .column.has-text-justified {\n  text-align: justify;\n}\n\n.columns .slide-content > .column.has-text-right {\n  text-align: right;\n}\n\n.text-left {\n  text-align: left !important\n}\n\n.text-right {\n  text-align: right !important\n}\n\n.text-center {\n  text-align: center !important\n}\n\n.text-justify {\n  text-align: justify !important\n}\n\n.footnotes {\n  border-top: 1px solid rgba(0, 0, 0, 0.2);\n  padding: 0.5em 0 0 0;\n  font-size: 0.65em;\n  margin-top: 4em;\n}\n\n.byline {\n  font-size:.8em\n}\nul.byline {\n  list-style-type: none;\n}\nul.byline li + li {\n  margin-top: 0.25em;\n}\n</style>".freeze); 
    ; 
    ; 
    ; 
    ; if attr? :icons, 'font'; 
    ; 
    ; if attr? 'iconfont-remote'; 
    ; if (iconfont_cdn = (attr 'iconfont-cdn')); 
    ; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes20 = iconfont_cdn; if _slim_codeattributes20; if _slim_codeattributes20 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes20).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; else; 
    ; 
    ; font_awesome_version = (attr 'font-awesome-version', '5.15.1'); 
    ; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes21 = %(#{cdn_base}/font-awesome/#{font_awesome_version}/css/all.min.css); if _slim_codeattributes21; if _slim_codeattributes21 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes21).to_s); _buf << ("\"".freeze); end; end; _buf << ("><link rel=\"stylesheet\"".freeze); 
    ; _slim_codeattributes22 = %(#{cdn_base}/font-awesome/#{font_awesome_version}/css/v4-shims.min.css); if _slim_codeattributes22; if _slim_codeattributes22 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes22).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; end; else; 
    ; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes23 = (normalize_web_path %(#{attr 'iconfont-name', 'font-awesome'}.css), (attr 'stylesdir', ''), false); if _slim_codeattributes23; if _slim_codeattributes23 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes23).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; end; end; _buf << ((generate_stem(cdn_base)).to_s); 
    ; syntax_hl = self.syntax_highlighter; 
    ; if syntax_hl && (syntax_hl.docinfo? :head); 
    ; _buf << ((syntax_hl.docinfo :head, self, cdn_base_url: cdn_base, linkcss: linkcss, self_closing_tag_slash: '/').to_s); 
    ; end; if attr? :customcss; 
    ; _buf << ("<link rel=\"stylesheet\"".freeze); _slim_codeattributes24 = ((customcss = attr :customcss).empty? ? 'asciidoctor-revealjs.css' : customcss); if _slim_codeattributes24; if _slim_codeattributes24 == true; _buf << (" href".freeze); else; _buf << (" href=\"".freeze); _buf << ((_slim_codeattributes24).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; end; unless (_docinfo = docinfo :head, '-revealjs.html').empty?; 
    ; _buf << ((_docinfo).to_s); 
    ; end; _buf << ("</head><body><div class=\"reveal\"><div class=\"slides\">".freeze); 
    ; 
    ; 
    ; 
    ; yield_content :slides; 
    ; _buf << ("</div></div><script src=\"".freeze); _buf << ((revealjsdir).to_s); _buf << ("/dist/reveal.js\"></script><script>Array.prototype.slice.call(document.querySelectorAll('.slides section')).forEach(function(slide) {\n  if (slide.getAttribute('data-background-color')) return;\n  // user needs to explicitly say he wants CSS color to override otherwise we might break custom css or theme (#226)\n  if (!(slide.classList.contains('canvas') || slide.classList.contains('background'))) return;\n  var bgColor = getComputedStyle(slide).backgroundColor;\n  if (bgColor !== 'rgba(0, 0, 0, 0)' && bgColor !== 'transparent') {\n    slide.setAttribute('data-background-color', bgColor);\n    slide.style.backgroundColor = 'transparent';\n  }\n});\n\n// More info about config & dependencies:\n// - https://github.com/hakimel/reveal.js#configuration\n// - https://github.com/hakimel/reveal.js#dependencies\nReveal.initialize({\n  // Display presentation control arrows\n  controls: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_controls', true)).to_s); _buf << (",\n  // Help the user learn the controls by providing hints, for example by\n  // bouncing the down arrow when they first encounter a vertical slide\n  controlsTutorial: ".freeze); 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_controlstutorial', true)).to_s); _buf << (",\n  // Determines where controls appear, \"edges\" or \"bottom-right\"\n  controlsLayout: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_controlslayout', 'bottom-right').to_s); _buf << ("',\n  // Visibility rule for backwards navigation arrows; \"faded\", \"hidden\"\n  // or \"visible\"\n  controlsBackArrows: '".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_controlsbackarrows', 'faded').to_s); _buf << ("',\n  // Display a presentation progress bar\n  progress: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_progress', true)).to_s); _buf << (",\n  // Display the page number of the current slide\n  slideNumber: ".freeze); 
    ; 
    ; _buf << ((to_valid_slidenumber(attr 'revealjs_slidenumber', false)).to_s); _buf << (",\n  // Control which views the slide number displays on\n  showSlideNumber: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_showslidenumber', 'all').to_s); _buf << ("',\n  // Add the current slide number to the URL hash so that reloading the\n  // page/copying the URL will return you to the same slide\n  hash: ".freeze); 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_hash', false)).to_s); _buf << (",\n  // Push each slide change to the browser history. Implies `hash: true`\n  history: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_history', false)).to_s); _buf << (",\n  // Enable keyboard shortcuts for navigation\n  keyboard: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_keyboard', true)).to_s); _buf << (",\n  // Enable the slide overview mode\n  overview: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_overview', true)).to_s); _buf << (",\n  // Disables the default reveal.js slide layout so that you can use custom CSS layout\n  disableLayout: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_disablelayout', false)).to_s); _buf << (",\n  // Vertical centering of slides\n  center: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_center', true)).to_s); _buf << (",\n  // Enables touch navigation on devices with touch input\n  touch: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_touch', true)).to_s); _buf << (",\n  // Loop the presentation\n  loop: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_loop', false)).to_s); _buf << (",\n  // Change the presentation direction to be RTL\n  rtl: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_rtl', false)).to_s); _buf << (",\n  // See https://github.com/hakimel/reveal.js/#navigation-mode\n  navigationMode: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_navigationmode', 'default').to_s); _buf << ("',\n  // Randomizes the order of slides each time the presentation loads\n  shuffle: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_shuffle', false)).to_s); _buf << (",\n  // Turns fragments on and off globally\n  fragments: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_fragments', true)).to_s); _buf << (",\n  // Flags whether to include the current fragment in the URL,\n  // so that reloading brings you to the same fragment position\n  fragmentInURL: ".freeze); 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_fragmentinurl', false)).to_s); _buf << (",\n  // Flags if the presentation is running in an embedded mode,\n  // i.e. contained within a limited portion of the screen\n  embedded: ".freeze); 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_embedded', false)).to_s); _buf << (",\n  // Flags if we should show a help overlay when the questionmark\n  // key is pressed\n  help: ".freeze); 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_help', true)).to_s); _buf << (",\n  // Flags if speaker notes should be visible to all viewers\n  showNotes: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_shownotes', false)).to_s); _buf << (",\n  // Global override for autolaying embedded media (video/audio/iframe)\n  // - null: Media will only autoplay if data-autoplay is present\n  // - true: All media will autoplay, regardless of individual setting\n  // - false: No media will autoplay, regardless of individual setting\n  autoPlayMedia: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_autoplaymedia', 'null').to_s); _buf << (",\n  // Global override for preloading lazy-loaded iframes\n  // - null: Iframes with data-src AND data-preload will be loaded when within\n  //   the viewDistance, iframes with only data-src will be loaded when visible\n  // - true: All iframes with data-src will be loaded when within the viewDistance\n  // - false: All iframes with data-src will be loaded only when visible\n  preloadIframes: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_preloadiframes', 'null').to_s); _buf << (",\n  // Number of milliseconds between automatically proceeding to the\n  // next slide, disabled when set to 0, this value can be overwritten\n  // by using a data-autoslide attribute on your slides\n  autoSlide: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_autoslide', 0).to_s); _buf << (",\n  // Stop auto-sliding after user input\n  autoSlideStoppable: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_autoslidestoppable', true)).to_s); _buf << (",\n  // Use this method for navigation when auto-sliding\n  autoSlideMethod: ".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_autoslidemethod', 'Reveal.navigateNext').to_s); _buf << (",\n  // Specify the average time in seconds that you think you will spend\n  // presenting each slide. This is used to show a pacing timer in the\n  // speaker view\n  defaultTiming: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_defaulttiming', 120).to_s); _buf << (",\n  // Specify the total time in seconds that is available to\n  // present.  If this is set to a nonzero value, the pacing\n  // timer will work out the time available for each slide,\n  // instead of using the defaultTiming value\n  totalTime: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_totaltime', 0).to_s); _buf << (",\n  // Specify the minimum amount of time you want to allot to\n  // each slide, if using the totalTime calculation method.  If\n  // the automated time allocation causes slide pacing to fall\n  // below this threshold, then you will see an alert in the\n  // speaker notes window\n  minimumTimePerSlide: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_minimumtimeperslide', 0).to_s); _buf << (",\n  // Enable slide navigation via mouse wheel\n  mouseWheel: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_mousewheel', false)).to_s); _buf << (",\n  // Hide cursor if inactive\n  hideInactiveCursor: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_hideinactivecursor', true)).to_s); _buf << (",\n  // Time before the cursor is hidden (in ms)\n  hideCursorTime: ".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_hidecursortime', 5000).to_s); _buf << (",\n  // Hides the address bar on mobile devices\n  hideAddressBar: ".freeze); 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_hideaddressbar', true)).to_s); _buf << (",\n  // Opens links in an iframe preview overlay\n  // Add `data-preview-link` and `data-preview-link=\"false\"` to customise each link\n  // individually\n  previewLinks: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_previewlinks', false)).to_s); _buf << (",\n  // Transition style (e.g., none, fade, slide, convex, concave, zoom)\n  transition: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_transition', 'slide').to_s); _buf << ("',\n  // Transition speed (e.g., default, fast, slow)\n  transitionSpeed: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_transitionspeed', 'default').to_s); _buf << ("',\n  // Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)\n  backgroundTransition: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_backgroundtransition', 'fade').to_s); _buf << ("',\n  // Number of slides away from the current that are visible\n  viewDistance: ".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_viewdistance', 3).to_s); _buf << (",\n  // Number of slides away from the current that are visible on mobile\n  // devices. It is advisable to set this to a lower number than\n  // viewDistance in order to save resources.\n  mobileViewDistance: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_mobileviewdistance', 3).to_s); _buf << (",\n  // Parallax background image (e.g., \"'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'\")\n  parallaxBackgroundImage: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_parallaxbackgroundimage', '').to_s); _buf << ("',\n  // Parallax background size in CSS syntax (e.g., \"2100px 900px\")\n  parallaxBackgroundSize: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_parallaxbackgroundsize', '').to_s); _buf << ("',\n  // Number of pixels to move the parallax background per slide\n  // - Calculated automatically unless specified\n  // - Set to 0 to disable movement along an axis\n  parallaxBackgroundHorizontal: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_parallaxbackgroundhorizontal', 'null').to_s); _buf << (",\n  parallaxBackgroundVertical: ".freeze); 
    ; _buf << ((attr 'revealjs_parallaxbackgroundvertical', 'null').to_s); _buf << (",\n  // The display mode that will be used to show slides\n  display: '".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_display', 'block').to_s); _buf << ("',\n\n  // The \"normal\" size of the presentation, aspect ratio will be preserved\n  // when the presentation is scaled to fit different resolutions. Can be\n  // specified using percentage units.\n  width: ".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (",\n  height: ".freeze); 
    ; _buf << ((attr 'revealjs_height', 700).to_s); _buf << (",\n\n  // Factor of the display size that should remain empty around the content\n  margin: ".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_margin', 0.1).to_s); _buf << (",\n\n  // Bounds for smallest/largest possible scale to apply to content\n  minScale: ".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_minscale', 0.2).to_s); _buf << (",\n  maxScale: ".freeze); 
    ; _buf << ((attr 'revealjs_maxscale', 1.5).to_s); _buf << (",\n\n  // PDF Export Options\n  // Put each fragment on a separate page\n  pdfSeparateFragments: ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((to_boolean(attr 'revealjs_pdfseparatefragments', true)).to_s); _buf << (",\n  // For slides that do not fit on a page, max number of pages\n  pdfMaxPagesPerSlide: ".freeze); 
    ; 
    ; _buf << ((attr 'revealjs_pdfmaxpagesperslide', 1).to_s); _buf << (",\n\n  // Optional libraries used to extend on reveal.js\n  dependencies: [\n      ".freeze); 
    ; 
    ; 
    ; 
    ; _buf << ((revealjs_dependencies(document, self, revealjsdir)).to_s); 
    ; _buf << ("\n  ],\n});</script><script>var dom = {};\ndom.slides = document.querySelector('.reveal .slides');\n\nfunction getRemainingHeight(element, slideElement, height) {\n  height = height || 0;\n  if (element) {\n    var newHeight, oldHeight = element.style.height;\n    // Change the .stretch element height to 0 in order find the height of all\n    // the other elements\n    element.style.height = '0px';\n    // In Overview mode, the parent (.slide) height is set of 700px.\n    // Restore it temporarily to its natural height.\n    slideElement.style.height = 'auto';\n    newHeight = height - slideElement.offsetHeight;\n    // Restore the old height, just in case\n    element.style.height = oldHeight + 'px';\n    // Clear the parent (.slide) height. .removeProperty works in IE9+\n    slideElement.style.removeProperty('height');\n    return newHeight;\n  }\n  return height;\n}\n\nfunction layoutSlideContents(width, height) {\n  // Handle sizing of elements with the 'stretch' class\n  toArray(dom.slides.querySelectorAll('section .stretch')).forEach(function (element) {\n    // Determine how much vertical space we can use\n    var limit = 5; // hard limit\n    var parent = element.parentNode;\n    while (parent.nodeName !== 'SECTION' && limit > 0) {\n      parent = parent.parentNode;\n      limit--;\n    }\n    if (limit === 0) {\n      // unable to find parent, aborting!\n      return;\n    }\n    var remainingHeight = getRemainingHeight(element, parent, height);\n    // Consider the aspect ratio of media elements\n    if (/(img|video)/gi.test(element.nodeName)) {\n      var nw = element.naturalWidth || element.videoWidth, nh = element.naturalHeight || element.videoHeight;\n      var es = Math.min(width / nw, remainingHeight / nh);\n      element.style.width = (nw * es) + 'px';\n      element.style.height = (nh * es) + 'px';\n    } else {\n      element.style.width = width + 'px';\n      element.style.height = remainingHeight + 'px';\n    }\n  });\n}\n\nfunction toArray(o) {\n  return Array.prototype.slice.call(o);\n}\n\nReveal.addEventListener('slidechanged', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});\nReveal.addEventListener('ready', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});\nReveal.addEventListener('resize', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});</script>".freeze); 
    ; 
    ; 
    ; if syntax_hl && (syntax_hl.docinfo? :footer); 
    ; _buf << ((syntax_hl.docinfo :footer, self, cdn_base_url: cdn_base, linkcss: linkcss, self_closing_tag_slash: '/').to_s); 
    ; 
    ; end; unless (docinfo_content = (docinfo :footer, '.html')).empty?; 
    ; _buf << ((docinfo_content).to_s); 
    ; end; _buf << ("</body></html>".freeze); _buf
  end
end

#convert_embedded(node, opts = {}) ⇒ Object



1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'lib/asciidoctor-revealjs/converter.rb', line 1215

def convert_embedded(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; unless notitle || !has_header?; 
    ; _buf << ("<h1".freeze); _slim_codeattributes1 = @id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id".freeze); else; _buf << (" id=\"".freeze); _buf << ((_slim_codeattributes1).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); _buf << ((@header.title).to_s); 
    ; _buf << ("</h1>".freeze); end; _buf << ((content).to_s); 
    ; unless !footnotes? || attr?(:nofootnotes); 
    ; _buf << ("<div id=\"footnotes\"><hr>".freeze); 
    ; 
    ; footnotes.each do |fn|; 
    ; _buf << ("<div class=\"footnote\" id=\"_footnote_".freeze); _buf << ((fn.index).to_s); _buf << ("\"><a href=\"#_footnoteref_".freeze); 
    ; _buf << ((fn.index).to_s); _buf << ("\">".freeze); _buf << ((fn.index).to_s); _buf << ("</a>. ".freeze); _buf << ((fn.text).to_s); 
    ; _buf << ("</div>".freeze); end; _buf << ("</div>".freeze); end; _buf
  end
end

#convert_example(node, opts = {}) ⇒ Object



518
519
520
521
522
523
524
525
526
527
528
# File 'lib/asciidoctor-revealjs/converter.rb', line 518

def convert_example(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['exampleblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((captioned_title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<div class=\"content\">".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</div>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_floating_title(node, opts = {}) ⇒ Object



1172
1173
1174
1175
1176
1177
1178
1179
1180
# File 'lib/asciidoctor-revealjs/converter.rb', line 1172

def convert_floating_title(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_htag_filter1 = ((level + 1)).to_s; _buf << ("<h".freeze); _buf << ((_slim_htag_filter1).to_s); _slim_codeattributes1 = id; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id".freeze); else; _buf << (" id=\"".freeze); _buf << ((_slim_codeattributes1).to_s); _buf << ("\"".freeze); 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(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes2).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _buf << (">".freeze); 
    ; _buf << ((title).to_s); 
    ; _buf << ("</h".freeze); _buf << ((_slim_htag_filter1).to_s); _buf << (">".freeze); _buf
  end
end

#convert_image(node, opts = {}) ⇒ Object



1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
# File 'lib/asciidoctor-revealjs/converter.rb', line 1795

def convert_image(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; unless attributes[1] == 'background' || attributes[1] == 'canvas'; 
    ; inline_style = [("text-align: #{attr :align}" if attr? :align),("float: #{attr :float}" if attr? :float)].compact.join('; '); 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['imageblock', role, ('fragment' if (option? :step) || (attr? 'step'))], :style => inline_style }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ((convert_image).to_s); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); if title?; 
    ; _buf << ("<div class=\"title\">".freeze); _buf << ((captioned_title).to_s); 
    ; _buf << ("</div>".freeze); end; end; _buf
  end
end

#convert_inline_anchor(node, opts = {}) ⇒ Object



805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# File 'lib/asciidoctor-revealjs/converter.rb', line 805

def convert_inline_anchor(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; case @type; 
    ; when :xref; 
    ; refid = (attr :refid) || @target; 
    ; _slim_controls1 = html_tag('a', { :href => @target, :class => [role, ('fragment' if (option? :step) || (attr? 'step'))].compact }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << (((@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')).to_s); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); when :ref; 
    ; _buf << ((html_tag('a', { :id => @target }.merge(data_attrs(@attributes)))).to_s); 
    ; when :bibref; 
    ; _buf << ((html_tag('a', { :id => @target }.merge(data_attrs(@attributes)))).to_s); 
    ; _buf << ("[".freeze); _buf << ((@target).to_s); _buf << ("]".freeze); 
    ; else; 
    ; _slim_controls3 = html_tag('a', { :href => @target, :class => [role, ('fragment' if (option? :step) || (attr? 'step'))].compact, :target => (attr :window), 'data-preview-link' => (bool_data_attr :preview) }.merge(data_attrs(@attributes))) do; _slim_controls4 = ''; 
    ; _slim_controls4 << ((@text).to_s); 
    ; _slim_controls4; end; _buf << ((_slim_controls3).to_s); end; _buf
  end
end

#convert_inline_break(node, opts = {}) ⇒ Object



1265
1266
1267
1268
1269
1270
1271
1272
1273
# File 'lib/asciidoctor-revealjs/converter.rb', line 1265

def convert_inline_break(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ((@text).to_s); 
    ; _buf << ("<br>".freeze); 
    ; _buf
  end
end

#convert_inline_button(node, opts = {}) ⇒ Object



530
531
532
533
534
535
536
537
538
# File 'lib/asciidoctor-revealjs/converter.rb', line 530

def convert_inline_button(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('b', { :class => ['button'] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ((@text).to_s); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_inline_callout(node, opts = {}) ⇒ Object



1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
# File 'lib/asciidoctor-revealjs/converter.rb', line 1191

def convert_inline_callout(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if @document.attr? :icons, 'font'; 
    ; _buf << ("<i class=\"conum\"".freeze); _slim_codeattributes1 = @text; if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" data-value".freeze); else; _buf << (" data-value=\"".freeze); _buf << ((_slim_codeattributes1).to_s); _buf << ("\"".freeze); end; end; _buf << ("></i><b>".freeze); 
    ; _buf << (("(#{@text})").to_s); 
    ; _buf << ("</b>".freeze); elsif @document.attr? :icons; 
    ; _buf << ("<img".freeze); _slim_codeattributes2 = icon_uri("callouts/#{@text}"); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" src".freeze); else; _buf << (" src=\"".freeze); _buf << ((_slim_codeattributes2).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes3 = @text; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" alt".freeze); else; _buf << (" alt=\"".freeze); _buf << ((_slim_codeattributes3).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; else; 
    ; _buf << ("<b>".freeze); _buf << (("(#{@text})").to_s); 
    ; _buf << ("</b>".freeze); end; _buf
  end
end

#convert_inline_footnote(node, opts = {}) ⇒ Object



1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
# File 'lib/asciidoctor-revealjs/converter.rb', line 1809

def convert_inline_footnote(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; footnote = slide_footnote(self); 
    ; index = footnote.attr(:index); 
    ; id = footnote.id; 
    ; if @type == :xref; 
    ; _slim_controls1 = html_tag('sup', { :class => ['footnoteref'] }.merge(data_attrs(footnote.attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ("[<span class=\"footnote\" title=\"View footnote.\">".freeze); 
    ; _slim_controls2 << ((index).to_s); 
    ; _slim_controls2 << ("</span>]".freeze); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); else; 
    ; _slim_controls3 = html_tag('sup', { :id => ("_footnote_#{id}" if id), :class => ['footnote'] }.merge(data_attrs(footnote.attributes))) do; _slim_controls4 = ''; 
    ; _slim_controls4 << ("[<span class=\"footnote\" title=\"View footnote.\">".freeze); 
    ; _slim_controls4 << ((index).to_s); 
    ; _slim_controls4 << ("</span>]".freeze); 
    ; _slim_controls4; end; _buf << ((_slim_controls3).to_s); end; _buf
  end
end

#convert_inline_image(node, opts = {}) ⇒ Object



1839
1840
1841
1842
1843
1844
1845
1846
1847
# File 'lib/asciidoctor-revealjs/converter.rb', line 1839

def convert_inline_image(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('span', { :class => [@type, role, ('fragment' if (option? :step) || (attr? 'step'))], :style => ("float: #{attr :float}" if attr? :float) }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ((convert_inline_image).to_s); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_inline_indexterm(node, opts = {}) ⇒ Object



1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'lib/asciidoctor-revealjs/converter.rb', line 1423

def convert_inline_indexterm(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if @type == :visible; 
    ; _buf << ((@text).to_s); 
    ; end; _buf
  end
end

#convert_inline_kbd(node, opts = {}) ⇒ Object



1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
# File 'lib/asciidoctor-revealjs/converter.rb', line 1494

def convert_inline_kbd(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if (keys = attr 'keys').size == 1; 
    ; _slim_controls1 = html_tag('kbd', data_attrs(@attributes)) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ((keys.first).to_s); 
    ; _slim_controls2; end; _buf << ((_slim_controls1).to_s); else; 
    ; _slim_controls3 = html_tag('span', { :class => ['keyseq'] }.merge(data_attrs(@attributes))) do; _slim_controls4 = ''; 
    ; keys.each_with_index do |key, idx|; 
    ; unless idx.zero?; 
    ; _slim_controls4 << ("+".freeze); 
    ; end; _slim_controls4 << ("<kbd>".freeze); _slim_controls4 << ((key).to_s); 
    ; _slim_controls4 << ("</kbd>".freeze); end; _slim_controls4; end; _buf << ((_slim_controls3).to_s); end; _buf
  end
end

#convert_inline_menu(node, opts = {}) ⇒ Object



604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# File 'lib/asciidoctor-revealjs/converter.rb', line 604

def convert_inline_menu(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; menu = attr 'menu'; 
    ; menuitem = attr 'menuitem'; 
    ; if !(submenus = attr 'submenus').empty?; 
    ; _slim_controls1 = html_tag('span', { :class => ['menuseq'] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ("<span class=\"menu\">".freeze); _slim_controls2 << ((menu).to_s); 
    ; _slim_controls2 << ("</span>&#160;&#9656;&#32;".freeze); 
    ; _slim_controls2 << ((submenus.map {|submenu| %(<span class="submenu">#{submenu}</span>&#160;&#9656;&#32;) }.join).to_s); 
    ; _slim_controls2 << ("<span class=\"menuitem\">".freeze); _slim_controls2 << ((menuitem).to_s); 
    ; _slim_controls2 << ("</span>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); elsif !menuitem.nil?; 
    ; _slim_controls3 = html_tag('span', { :class => ['menuseq'] }.merge(data_attrs(@attributes))) do; _slim_controls4 = ''; 
    ; _slim_controls4 << ("<span class=\"menu\">".freeze); _slim_controls4 << ((menu).to_s); 
    ; _slim_controls4 << ("</span>&#160;&#9656;&#32;<span class=\"menuitem\">".freeze); 
    ; _slim_controls4 << ((menuitem).to_s); 
    ; _slim_controls4 << ("</span>".freeze); _slim_controls4; end; _buf << ((_slim_controls3).to_s); else; 
    ; _slim_controls5 = html_tag('span', { :class => ['menu'] }.merge(data_attrs(@attributes))) do; _slim_controls6 = ''; 
    ; _slim_controls6 << ((menu).to_s); 
    ; _slim_controls6; end; _buf << ((_slim_controls5).to_s); end; _buf
  end
end

#convert_inline_quoted(node, opts = {}) ⇒ Object



756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'lib/asciidoctor-revealjs/converter.rb', line 756

def convert_inline_quoted(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; quote_tags = { emphasis: 'em', strong: 'strong', monospaced: 'code', superscript: 'sup', subscript: 'sub' }; 
    ; if (quote_tag = quote_tags[@type]); 
    ; _buf << ((html_tag(quote_tag, { :id => @id, :class => [role, ('fragment' if (option? :step) || (attr? 'step'))].compact }.merge(data_attrs(@attributes)), @text)).to_s); 
    ; else; 
    ; case @type; 
    ; when :double; 
    ; _buf << ((inline_text_container("&#8220;#{@text}&#8221;")).to_s); 
    ; when :single; 
    ; _buf << ((inline_text_container("&#8216;#{@text}&#8217;")).to_s); 
    ; when :asciimath, :latexmath; 
    ; open, close = Asciidoctor::INLINE_MATH_DELIMITERS[@type]; 
    ; _buf << ((inline_text_container("#{open}#{@text}#{close}")).to_s); 
    ; else; 
    ; _buf << ((inline_text_container(@text)).to_s); 
    ; end; end; _buf
  end
end

#convert_listing(node, opts = {}) ⇒ Object



1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
# File 'lib/asciidoctor-revealjs/converter.rb', line 1232

def convert_listing(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; nowrap = (option? 'nowrap') || !(document.attr? 'prewrap'); 
    ; if @style == 'source'; 
    ; syntax_hl = document.syntax_highlighter; 
    ; lang = attr :language; 
    ; if syntax_hl; 
    ; doc_attrs = document.attributes; 
    ; css_mode = (doc_attrs[%(#{syntax_hl.name}-css)] || :class).to_sym; 
    ; style = doc_attrs[%(#{syntax_hl.name}-style)]; 
    ; opts = syntax_hl.highlight? ? { css_mode: css_mode, style: style } : {}; 
    ; opts[:nowrap] = nowrap; 
    ; end; 
    ; end; _slim_controls1 = html_tag('div', { :id => id, :class => ['listingblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes.reject {|key, _| key == 'data-id' }))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((captioned_title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<div class=\"content\">".freeze); 
    ; if syntax_hl; 
    ; _slim_controls2 << (((syntax_hl.format self, lang, opts)).to_s); 
    ; else; 
    ; if @style == 'source'; 
    ; _slim_controls2 << ("<pre".freeze); _temple_html_attributeremover1 = ''; _slim_codeattributes1 = ['highlight', ('nowrap' if 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(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover1).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << ("><code".freeze); 
    ; _temple_html_attributeremover2 = ''; _slim_codeattributes2 = [("language-#{lang}" if lang)]; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover2 << ((_slim_codeattributes2.join(" ")).to_s); else; _temple_html_attributeremover2 << ((_slim_codeattributes2).to_s); end; _temple_html_attributeremover2; if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover2).to_s); _slim_controls2 << ("\"".freeze); end; _slim_codeattributes3 = ("#{lang}" if lang); if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" data-lang".freeze); else; _slim_controls2 << (" data-lang=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">".freeze); 
    ; _slim_controls2 << ((content || '').to_s); 
    ; _slim_controls2 << ("</code></pre>".freeze); else; 
    ; _slim_controls2 << ("<pre".freeze); _temple_html_attributeremover3 = ''; _slim_codeattributes4 = [('nowrap' if nowrap)]; if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover3 << ((_slim_codeattributes4.join(" ")).to_s); else; _temple_html_attributeremover3 << ((_slim_codeattributes4).to_s); end; _temple_html_attributeremover3; if !_temple_html_attributeremover3.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover3).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << (">".freeze); 
    ; _slim_controls2 << ((content || '').to_s); 
    ; _slim_controls2 << ("</pre>".freeze); end; end; _slim_controls2 << ("</div>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_literal(node, opts = {}) ⇒ Object



1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
# File 'lib/asciidoctor-revealjs/converter.rb', line 1511

def convert_literal(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => id, :class => ['literalblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<div class=\"content\"><pre".freeze); _temple_html_attributeremover1 = ''; _slim_codeattributes1 = (!(@document.attr? :prewrap) || (option? 'nowrap') ? 'nowrap' : nil); if Array === _slim_codeattributes1; _slim_codeattributes1 = _slim_codeattributes1.flatten; _slim_codeattributes1.map!(&:to_s); _slim_codeattributes1.reject!(&:empty?); _temple_html_attributeremover1 << ((_slim_codeattributes1.join(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover1).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << (">".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</pre></div>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_notes(node, opts = {}) ⇒ Object



1830
1831
1832
1833
1834
1835
1836
1837
# File 'lib/asciidoctor-revealjs/converter.rb', line 1830

def convert_notes(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ("<aside class=\"notes\">".freeze); _buf << ((resolve_content).to_s); 
    ; _buf << ("</aside>".freeze); _buf
  end
end

#convert_olist(node, opts = {}) ⇒ Object



1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
# File 'lib/asciidoctor-revealjs/converter.rb', line 1764

def convert_olist(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['olist', @style, role] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<ol".freeze); _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(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover1).to_s); _slim_controls2 << ("\"".freeze); end; _slim_codeattributes2 = (attr :start); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" start".freeze); else; _slim_controls2 << (" start=\"".freeze); _slim_controls2 << ((_slim_codeattributes2).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes3 = list_marker_keyword; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" type".freeze); else; _slim_controls2 << (" type=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">".freeze); 
    ; items.each do |item|; 
    ; _slim_controls2 << ("<li".freeze); _temple_html_attributeremover2 = ''; _slim_codeattributes4 = ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step')); if Array === _slim_codeattributes4; _slim_codeattributes4 = _slim_codeattributes4.flatten; _slim_codeattributes4.map!(&:to_s); _slim_codeattributes4.reject!(&:empty?); _temple_html_attributeremover2 << ((_slim_codeattributes4.join(" ")).to_s); else; _temple_html_attributeremover2 << ((_slim_codeattributes4).to_s); end; _temple_html_attributeremover2; if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover2).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << ("><p>".freeze); 
    ; _slim_controls2 << ((item.text).to_s); 
    ; _slim_controls2 << ("</p>".freeze); if item.blocks?; 
    ; _slim_controls2 << ((item.content).to_s); 
    ; end; _slim_controls2 << ("</li>".freeze); end; _slim_controls2 << ("</ol>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_open(node, opts = {}) ⇒ Object



628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
# File 'lib/asciidoctor-revealjs/converter.rb', line 628

def convert_open(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if @style == 'abstract'; 
    ; if @parent == @document && @document.doctype == 'book'; 
    ; puts 'asciidoctor: WARNING: abstract block cannot be used in a document without a title when doctype is book. Excluding block content.'; 
    ; else; 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['quoteblock', 'abstract', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<blockquote>".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</blockquote>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); end; elsif @style == 'partintro' && (@level != 0 || @parent.context != :section || @document.doctype != 'book'); 
    ; puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and it\'s a child of a book part. Excluding block content.'; 
    ; else; 
    ; if (has_role? 'aside') or (has_role? 'speaker') or (has_role? 'notes'); 
    ; _buf << ("<aside class=\"notes\">".freeze); _buf << ((resolve_content).to_s); 
    ; _buf << ("</aside>".freeze); 
    ; else; 
    ; _slim_controls3 = html_tag('div', { :id => @id, :class => ['openblock', (@style != 'open' ? @style : nil), role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls4 = ''; 
    ; if title?; 
    ; _slim_controls4 << ("<div class=\"title\">".freeze); _slim_controls4 << ((title).to_s); 
    ; _slim_controls4 << ("</div>".freeze); end; _slim_controls4 << ("<div class=\"content\">".freeze); _slim_controls4 << ((content).to_s); 
    ; _slim_controls4 << ("</div>".freeze); _slim_controls4; end; _buf << ((_slim_controls3).to_s); end; end; _buf
  end
end

#convert_outline(node, opts = {}) ⇒ Object



1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
# File 'lib/asciidoctor-revealjs/converter.rb', line 1406

def convert_outline(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; unless sections.empty?; 
    ; toclevels ||= (document.attr 'toclevels', DEFAULT_TOCLEVELS).to_i; 
    ; slevel = section_level sections.first; 
    ; _buf << ("<ol class=\"sectlevel".freeze); _buf << ((slevel).to_s); _buf << ("\">".freeze); 
    ; sections.each do |sec|; 
    ; _buf << ("<li><a href=\"#".freeze); 
    ; _buf << ((sec.id).to_s); _buf << ("\">".freeze); _buf << ((section_title sec).to_s); 
    ; _buf << ("</a>".freeze); if (sec.level < toclevels) && (child_toc = converter.convert sec, 'outline'); 
    ; _buf << ((child_toc).to_s); 
    ; end; _buf << ("</li>".freeze); end; _buf << ("</ol>".freeze); end; _buf
  end
end

#convert_page_break(node, opts = {}) ⇒ Object



1182
1183
1184
1185
1186
1187
1188
1189
# File 'lib/asciidoctor-revealjs/converter.rb', line 1182

def convert_page_break(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ("<div style=\"page-break-after: always;\"></div>".freeze); 
    ; _buf
  end
end

#convert_paragraph(node, opts = {}) ⇒ Object



655
656
657
658
659
660
661
662
663
664
665
666
667
668
# File 'lib/asciidoctor-revealjs/converter.rb', line 655

def convert_paragraph(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['paragraph', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; if has_role? 'small'; 
    ; _slim_controls2 << ("<small>".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</small>".freeze); else; 
    ; _slim_controls2 << ("<p>".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</p>".freeze); end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_pass(node, opts = {}) ⇒ Object



1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/asciidoctor-revealjs/converter.rb', line 1206

def convert_pass(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ((content).to_s); 
    ; _buf
  end
end

#convert_preamble(node, opts = {}) ⇒ Object



568
569
570
571
572
573
574
575
576
# File 'lib/asciidoctor-revealjs/converter.rb', line 568

def convert_preamble(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; 
    ; 
    ; _buf
  end
end

#convert_quote(node, opts = {}) ⇒ Object



1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/asciidoctor-revealjs/converter.rb', line 1308

def convert_quote(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['quoteblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<blockquote>".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</blockquote>".freeze); attribution = (attr? :attribution) ? (attr :attribution) : nil; 
    ; citetitle = (attr? :citetitle) ? (attr :citetitle) : nil; 
    ; if attribution || citetitle; 
    ; _slim_controls2 << ("<div class=\"attribution\">".freeze); 
    ; if citetitle; 
    ; _slim_controls2 << ("<cite>".freeze); _slim_controls2 << ((citetitle).to_s); 
    ; _slim_controls2 << ("</cite>".freeze); end; if attribution; 
    ; if citetitle; 
    ; _slim_controls2 << ("<br>".freeze); 
    ; end; _slim_controls2 << ("&#8212; ".freeze); _slim_controls2 << ((attribution).to_s); 
    ; end; _slim_controls2 << ("</div>".freeze); end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_ruler(node, opts = {}) ⇒ Object



595
596
597
598
599
600
601
602
# File 'lib/asciidoctor-revealjs/converter.rb', line 595

def convert_ruler(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ("<hr>".freeze); 
    ; _buf
  end
end

#convert_section(node, opts = {}) ⇒ Object



1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
# File 'lib/asciidoctor-revealjs/converter.rb', line 1523

def convert_section(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; 
    ; 
    ; titleless = (title = self.title) == '!'; 
    ; hide_title = (titleless || (option? :notitle) || (option? :conceal)); 
    ; 
    ; vertical_slides = find_by(context: :section) {|section| section.level == 2 }; 
    ; 
    ; 
    ; 
    ; data_background_image, data_background_size, data_background_repeat,
    data_background_position, data_background_transition = nil; 
    ; 
    ; 
    ; section_images = blocks.map do |block|; 
    ; if (ctx = block.context) == :image; 
    ; ['background', 'canvas'].include?(block.attributes[1]) ? block : []; 
    ; elsif ctx == :section; 
    ; []; 
    ; else; 
    ; block.find_by(context: :image) {|image| ['background', 'canvas'].include?(image.attributes[1]) } || []; 
    ; end; end; if (bg_image = section_images.flatten.first); 
    ; data_background_image = image_uri(bg_image.attr 'target'); 
    ; 
    ; data_background_size = bg_image.attr 'size'; 
    ; data_background_repeat = bg_image.attr 'repeat'; 
    ; data_background_transition = bg_image.attr 'transition'; 
    ; data_background_position = bg_image.attr 'position'; 
    ; 
    ; 
    ; end; if attr? 'background-image'; 
    ; data_background_image = image_uri(attr 'background-image'); 
    ; 
    ; end; if attr? 'background-video'; 
    ; data_background_video = media_uri(attr 'background-video'); 
    ; 
    ; end; if attr? 'background-color'; 
    ; data_background_color = attr 'background-color'; 
    ; 
    ; end; parent_section_with_vertical_slides = @level == 1 && !vertical_slides.empty?; 
    ; 
    ; content_for :footnotes do; 
    ; slide_footnotes = slide_footnotes(self); 
    ; if document.footnotes? && !(parent.attr? 'nofootnotes') && !slide_footnotes.empty?; 
    ; _buf << ("<div class=\"footnotes\">".freeze); 
    ; slide_footnotes.each do |footnote|; 
    ; _buf << ("<div class=\"footnote\">".freeze); 
    ; _buf << (("#{footnote.index}. #{footnote.text}").to_s); 
    ; 
    ; _buf << ("</div>".freeze); end; _buf << ("</div>".freeze); end; end; content_for :section do; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ("<section".freeze); _slim_codeattributes1 = (titleless ? nil : id); if _slim_codeattributes1; if _slim_codeattributes1 == true; _buf << (" id".freeze); else; _buf << (" id=\"".freeze); _buf << ((_slim_codeattributes1).to_s); _buf << ("\"".freeze); end; end; _temple_html_attributeremover1 = ''; _slim_codeattributes2 = roles; if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover1 << ((_slim_codeattributes2.join(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes2).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _slim_codeattributes3 = (attr "background-gradient"); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" data-background-gradient".freeze); else; _buf << (" data-background-gradient=\"".freeze); _buf << ((_slim_codeattributes3).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes4 = (attr 'transition'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" data-transition".freeze); else; _buf << (" data-transition=\"".freeze); _buf << ((_slim_codeattributes4).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes5 = (attr 'transition-speed'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" data-transition-speed".freeze); else; _buf << (" data-transition-speed=\"".freeze); _buf << ((_slim_codeattributes5).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes6 = data_background_color; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" data-background-color".freeze); else; _buf << (" data-background-color=\"".freeze); _buf << ((_slim_codeattributes6).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes7 = data_background_image; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" data-background-image".freeze); else; _buf << (" data-background-image=\"".freeze); _buf << ((_slim_codeattributes7).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes8 = (data_background_size || attr('background-size')); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-background-size".freeze); else; _buf << (" data-background-size=\"".freeze); _buf << ((_slim_codeattributes8).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes9 = (data_background_repeat || attr('background-repeat')); if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" data-background-repeat".freeze); else; _buf << (" data-background-repeat=\"".freeze); _buf << ((_slim_codeattributes9).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes10 = (data_background_transition || attr('background-transition')); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" data-background-transition".freeze); else; _buf << (" data-background-transition=\"".freeze); _buf << ((_slim_codeattributes10).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes11 = (data_background_position || attr('background-position')); if _slim_codeattributes11; if _slim_codeattributes11 == true; _buf << (" data-background-position".freeze); else; _buf << (" data-background-position=\"".freeze); _buf << ((_slim_codeattributes11).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes12 = (attr "background-iframe"); if _slim_codeattributes12; if _slim_codeattributes12 == true; _buf << (" data-background-iframe".freeze); else; _buf << (" data-background-iframe=\"".freeze); _buf << ((_slim_codeattributes12).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes13 = data_background_video; if _slim_codeattributes13; if _slim_codeattributes13 == true; _buf << (" data-background-video".freeze); else; _buf << (" data-background-video=\"".freeze); _buf << ((_slim_codeattributes13).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes14 = ((attr? 'background-video-loop') || (option? 'loop')); if _slim_codeattributes14; if _slim_codeattributes14 == true; _buf << (" data-background-video-loop".freeze); else; _buf << (" data-background-video-loop=\"".freeze); _buf << ((_slim_codeattributes14).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes15 = ((attr? 'background-video-muted') || (option? 'muted')); if _slim_codeattributes15; if _slim_codeattributes15 == true; _buf << (" data-background-video-muted".freeze); else; _buf << (" data-background-video-muted=\"".freeze); _buf << ((_slim_codeattributes15).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes16 = (attr "background-opacity"); if _slim_codeattributes16; if _slim_codeattributes16 == true; _buf << (" data-background-opacity".freeze); else; _buf << (" data-background-opacity=\"".freeze); _buf << ((_slim_codeattributes16).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes17 = (attr "autoslide"); if _slim_codeattributes17; if _slim_codeattributes17 == true; _buf << (" data-autoslide".freeze); else; _buf << (" data-autoslide=\"".freeze); _buf << ((_slim_codeattributes17).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes18 = (attr 'state'); if _slim_codeattributes18; if _slim_codeattributes18 == true; _buf << (" data-state".freeze); else; _buf << (" data-state=\"".freeze); _buf << ((_slim_codeattributes18).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes19 = ((attr? 'auto-animate') || (option? 'auto-animate')); if _slim_codeattributes19; if _slim_codeattributes19 == true; _buf << (" data-auto-animate".freeze); else; _buf << (" data-auto-animate=\"".freeze); _buf << ((_slim_codeattributes19).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes20 = ((attr 'auto-animate-easing') || (option? 'auto-animate-easing')); if _slim_codeattributes20; if _slim_codeattributes20 == true; _buf << (" data-auto-animate-easing".freeze); else; _buf << (" data-auto-animate-easing=\"".freeze); _buf << ((_slim_codeattributes20).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes21 = ((attr 'auto-animate-unmatched') || (option? 'auto-animate-unmatched')); if _slim_codeattributes21; if _slim_codeattributes21 == true; _buf << (" data-auto-animate-unmatched".freeze); else; _buf << (" data-auto-animate-unmatched=\"".freeze); _buf << ((_slim_codeattributes21).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes22 = ((attr 'auto-animate-duration') || (option? 'auto-animate-duration')); if _slim_codeattributes22; if _slim_codeattributes22 == true; _buf << (" data-auto-animate-duration".freeze); else; _buf << (" data-auto-animate-duration=\"".freeze); _buf << ((_slim_codeattributes22).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes23 = (attr 'auto-animate-id'); if _slim_codeattributes23; if _slim_codeattributes23 == true; _buf << (" data-auto-animate-id".freeze); else; _buf << (" data-auto-animate-id=\"".freeze); _buf << ((_slim_codeattributes23).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes24 = ((attr? 'auto-animate-restart') || (option? 'auto-animate-restart')); if _slim_codeattributes24; if _slim_codeattributes24 == true; _buf << (" data-auto-animate-restart".freeze); else; _buf << (" data-auto-animate-restart=\"".freeze); _buf << ((_slim_codeattributes24).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; unless hide_title; 
    ; _buf << ("<h2>".freeze); _buf << ((section_title).to_s); 
    ; _buf << ("</h2>".freeze); end; if parent_section_with_vertical_slides; 
    ; unless (_blocks = blocks - vertical_slides).empty?; 
    ; _buf << ("<div class=\"slide-content\">".freeze); 
    ; _blocks.each do |block|; 
    ; _buf << ((block.convert).to_s); 
    ; end; _buf << ("</div>".freeze); end; yield_content :footnotes; 
    ; 
    ; else; 
    ; unless (_content = content.chomp).empty?; 
    ; _buf << ("<div class=\"slide-content\">".freeze); 
    ; _buf << ((_content).to_s); 
    ; _buf << ("</div>".freeze); end; yield_content :footnotes; 
    ; 
    ; end; clear_slide_footnotes; 
    ; 
    ; _buf << ("</section>".freeze); 
    ; 
    ; end; if parent_section_with_vertical_slides; 
    ; _buf << ("<section>".freeze); 
    ; yield_content :section; 
    ; vertical_slides.each do |subsection|; 
    ; _buf << ((subsection.convert).to_s); 
    ; 
    ; end; _buf << ("</section>".freeze); 
    ; else; 
    ; if @level >= 3; 
    ; 
    ; _slim_htag_filter1 = ((@level)).to_s; _buf << ("<h".freeze); _buf << ((_slim_htag_filter1).to_s); _buf << (">".freeze); _buf << ((title).to_s); 
    ; _buf << ("</h".freeze); _buf << ((_slim_htag_filter1).to_s); _buf << (">".freeze); _buf << ((content.chomp).to_s); 
    ; else; 
    ; yield_content :section; 
    ; end; end; _buf
  end
end

#convert_sidebar(node, opts = {}) ⇒ Object



578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/asciidoctor-revealjs/converter.rb', line 578

def convert_sidebar(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if (has_role? 'aside') or (has_role? 'speaker') or (has_role? 'notes'); 
    ; _buf << ("<aside class=\"notes\">".freeze); _buf << ((resolve_content).to_s); 
    ; _buf << ("</aside>".freeze); 
    ; else; 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['sidebarblock', role, ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; _slim_controls2 << ("<div class=\"content\">".freeze); 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</div>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); end; _buf
  end
end

#convert_stem(node, opts = {}) ⇒ Object



787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
# File 'lib/asciidoctor-revealjs/converter.rb', line 787

def convert_stem(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; open, close = Asciidoctor::BLOCK_MATH_DELIMITERS[@style.to_sym]; 
    ; equation = content.strip; 
    ; if (@subs.nil? || @subs.empty?) && !(attr? 'subs'); 
    ; equation = sub_specialcharacters equation; 
    ; end; unless (equation.start_with? open) && (equation.end_with? close); 
    ; equation = %(#{open}#{equation}#{close}); 
    ; end; _slim_controls1 = html_tag('div', { :id => @id, :class => ['stemblock', role, ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<div class=\"content\">".freeze); _slim_controls2 << ((equation).to_s); 
    ; _slim_controls2 << ("</div>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_stretch_nested_elements(node, opts = {}) ⇒ Object



1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/asciidoctor-revealjs/converter.rb', line 1691

def convert_stretch_nested_elements(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ("<script>var dom = {};\ndom.slides = document.querySelector('.reveal .slides');\n\nfunction getRemainingHeight(element, slideElement, height) {\n  height = height || 0;\n  if (element) {\n    var newHeight, oldHeight = element.style.height;\n    // Change the .stretch element height to 0 in order find the height of all\n    // the other elements\n    element.style.height = '0px';\n    // In Overview mode, the parent (.slide) height is set of 700px.\n    // Restore it temporarily to its natural height.\n    slideElement.style.height = 'auto';\n    newHeight = height - slideElement.offsetHeight;\n    // Restore the old height, just in case\n    element.style.height = oldHeight + 'px';\n    // Clear the parent (.slide) height. .removeProperty works in IE9+\n    slideElement.style.removeProperty('height');\n    return newHeight;\n  }\n  return height;\n}\n\nfunction layoutSlideContents(width, height) {\n  // Handle sizing of elements with the 'stretch' class\n  toArray(dom.slides.querySelectorAll('section .stretch')).forEach(function (element) {\n    // Determine how much vertical space we can use\n    var limit = 5; // hard limit\n    var parent = element.parentNode;\n    while (parent.nodeName !== 'SECTION' && limit > 0) {\n      parent = parent.parentNode;\n      limit--;\n    }\n    if (limit === 0) {\n      // unable to find parent, aborting!\n      return;\n    }\n    var remainingHeight = getRemainingHeight(element, parent, height);\n    // Consider the aspect ratio of media elements\n    if (/(img|video)/gi.test(element.nodeName)) {\n      var nw = element.naturalWidth || element.videoWidth, nh = element.naturalHeight || element.videoHeight;\n      var es = Math.min(width / nw, remainingHeight / nh);\n      element.style.width = (nw * es) + 'px';\n      element.style.height = (nh * es) + 'px';\n    } else {\n      element.style.width = width + 'px';\n      element.style.height = remainingHeight + 'px';\n    }\n  });\n}\n\nfunction toArray(o) {\n  return Array.prototype.slice.call(o);\n}\n\nReveal.addEventListener('slidechanged', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});\nReveal.addEventListener('ready', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});\nReveal.addEventListener('resize', function () {\n  layoutSlideContents(".freeze); 
    ; 
    ; 
    ; _buf << ((attr 'revealjs_width', 960).to_s); _buf << (", ".freeze); _buf << ((attr 'revealjs_height', 700).to_s); _buf << (")\n});</script>".freeze); 
    ; 
    ; _buf
  end
end

#convert_table(node, opts = {}) ⇒ Object



1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
# File 'lib/asciidoctor-revealjs/converter.rb', line 1637

def convert_table(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; classes = ['tableblock', "frame-#{attr :frame, 'all'}", "grid-#{attr :grid, 'all'}", role, ('fragment' if (option? :step) || (attr? 'step'))]; 
    ; styles = [("width:#{attr :tablepcwidth}%" unless option? 'autowidth'), ("float:#{attr :float}" if attr? :float)].compact.join('; '); 
    ; _slim_controls1 = html_tag('table', { :id => @id, :class => classes, :style => styles }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<caption class=\"title\">".freeze); _slim_controls2 << ((captioned_title).to_s); 
    ; _slim_controls2 << ("</caption>".freeze); end; unless (attr :rowcount).zero?; 
    ; _slim_controls2 << ("<colgroup>".freeze); 
    ; if option? 'autowidth'; 
    ; @columns.each do; 
    ; _slim_controls2 << ("<col>".freeze); 
    ; end; else; 
    ; @columns.each do |col|; 
    ; _slim_controls2 << ("<col style=\"width:".freeze); _slim_controls2 << ((col.attr :colpcwidth).to_s); _slim_controls2 << ("%\">".freeze); 
    ; end; end; _slim_controls2 << ("</colgroup>".freeze); [:head, :foot, :body].select {|tblsec| !@rows[tblsec].empty? }.each do |tblsec|; 
    ; 
    ; _slim_controls2 << ("<t".freeze); _slim_controls2 << ((tblsec).to_s); _slim_controls2 << (">".freeze); 
    ; @rows[tblsec].each do |row|; 
    ; _slim_controls2 << ("<tr>".freeze); 
    ; row.each do |cell|; 
    ; 
    ; if tblsec == :head; 
    ; cell_content = cell.text; 
    ; else; 
    ; case cell.style; 
    ; when :literal; 
    ; cell_content = cell.text; 
    ; else; 
    ; cell_content = cell.content; 
    ; end; end; _slim_controls3 = html_tag(tblsec == :head || cell.style == :header ? 'th' : 'td',
    :class=>['tableblock', "halign-#{cell.attr :halign}", "valign-#{cell.attr :valign}"],
    :colspan=>cell.colspan, :rowspan=>cell.rowspan,
    :style=>((@document.attr? :cellbgcolor) ? %(background-color:#{@document.attr :cellbgcolor};) : nil)) do; _slim_controls4 = ''; 
    ; if tblsec == :head; 
    ; _slim_controls4 << ((cell_content).to_s); 
    ; else; 
    ; case cell.style; 
    ; when :asciidoc; 
    ; _slim_controls4 << ("<div>".freeze); _slim_controls4 << ((cell_content).to_s); 
    ; _slim_controls4 << ("</div>".freeze); when :literal; 
    ; _slim_controls4 << ("<div class=\"literal\"><pre>".freeze); _slim_controls4 << ((cell_content).to_s); 
    ; _slim_controls4 << ("</pre></div>".freeze); when :header; 
    ; cell_content.each do |text|; 
    ; _slim_controls4 << ("<p class=\"tableblock header\">".freeze); _slim_controls4 << ((text).to_s); 
    ; _slim_controls4 << ("</p>".freeze); end; else; 
    ; cell_content.each do |text|; 
    ; _slim_controls4 << ("<p class=\"tableblock\">".freeze); _slim_controls4 << ((text).to_s); 
    ; _slim_controls4 << ("</p>".freeze); end; end; end; _slim_controls4; end; _slim_controls2 << ((_slim_controls3).to_s); end; _slim_controls2 << ("</tr>".freeze); end; end; end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_thematic_break(node, opts = {}) ⇒ Object



778
779
780
781
782
783
784
785
# File 'lib/asciidoctor-revealjs/converter.rb', line 778

def convert_thematic_break(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _buf << ("<hr>".freeze); 
    ; _buf
  end
end

#convert_title_slide(node, opts = {}) ⇒ Object



1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
# File 'lib/asciidoctor-revealjs/converter.rb', line 1433

def convert_title_slide(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; bg_image = (attr? 'title-slide-background-image') ? (image_uri(attr 'title-slide-background-image')) : nil; 
    ; bg_video = (attr? 'title-slide-background-video') ? (media_uri(attr 'title-slide-background-video')) : nil; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ("<section".freeze); _temple_html_attributeremover1 = ''; _temple_html_attributemerger1 = []; _temple_html_attributemerger1[0] = "title"; _temple_html_attributemerger1[1] = ''; _slim_codeattributes1 = 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(" ")).to_s); else; _temple_html_attributemerger1[1] << ((_slim_codeattributes1).to_s); end; _temple_html_attributemerger1[1]; _temple_html_attributeremover1 << ((_temple_html_attributemerger1.reject(&:empty?).join(" ")).to_s); _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _buf << (" data-state=\"title\"".freeze); _slim_codeattributes2 = (attr 'title-slide-transition'); if _slim_codeattributes2; if _slim_codeattributes2 == true; _buf << (" data-transition".freeze); else; _buf << (" data-transition=\"".freeze); _buf << ((_slim_codeattributes2).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes3 = (attr 'title-slide-transition-speed'); if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" data-transition-speed".freeze); else; _buf << (" data-transition-speed=\"".freeze); _buf << ((_slim_codeattributes3).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes4 = (attr 'title-slide-background'); if _slim_codeattributes4; if _slim_codeattributes4 == true; _buf << (" data-background".freeze); else; _buf << (" data-background=\"".freeze); _buf << ((_slim_codeattributes4).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes5 = (attr 'title-slide-background-size'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _buf << (" data-background-size".freeze); else; _buf << (" data-background-size=\"".freeze); _buf << ((_slim_codeattributes5).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes6 = bg_image; if _slim_codeattributes6; if _slim_codeattributes6 == true; _buf << (" data-background-image".freeze); else; _buf << (" data-background-image=\"".freeze); _buf << ((_slim_codeattributes6).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes7 = bg_video; if _slim_codeattributes7; if _slim_codeattributes7 == true; _buf << (" data-background-video".freeze); else; _buf << (" data-background-video=\"".freeze); _buf << ((_slim_codeattributes7).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes8 = (attr 'title-slide-background-video-loop'); if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-background-video-loop".freeze); else; _buf << (" data-background-video-loop=\"".freeze); _buf << ((_slim_codeattributes8).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes9 = (attr 'title-slide-background-video-muted'); if _slim_codeattributes9; if _slim_codeattributes9 == true; _buf << (" data-background-video-muted".freeze); else; _buf << (" data-background-video-muted=\"".freeze); _buf << ((_slim_codeattributes9).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes10 = (attr 'title-slide-background-opacity'); if _slim_codeattributes10; if _slim_codeattributes10 == true; _buf << (" data-background-opacity".freeze); else; _buf << (" data-background-opacity=\"".freeze); _buf << ((_slim_codeattributes10).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes11 = (attr 'title-slide-background-iframe'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _buf << (" data-background-iframe".freeze); else; _buf << (" data-background-iframe=\"".freeze); _buf << ((_slim_codeattributes11).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes12 = (attr 'title-slide-background-color'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _buf << (" data-background-color".freeze); else; _buf << (" data-background-color=\"".freeze); _buf << ((_slim_codeattributes12).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes13 = (attr 'title-slide-background-repeat'); if _slim_codeattributes13; if _slim_codeattributes13 == true; _buf << (" data-background-repeat".freeze); else; _buf << (" data-background-repeat=\"".freeze); _buf << ((_slim_codeattributes13).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes14 = (attr 'title-slide-background-position'); if _slim_codeattributes14; if _slim_codeattributes14 == true; _buf << (" data-background-position".freeze); else; _buf << (" data-background-position=\"".freeze); _buf << ((_slim_codeattributes14).to_s); _buf << ("\"".freeze); end; end; _slim_codeattributes15 = (attr 'title-slide-background-transition'); if _slim_codeattributes15; if _slim_codeattributes15 == true; _buf << (" data-background-transition".freeze); else; _buf << (" data-background-transition=\"".freeze); _buf << ((_slim_codeattributes15).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); 
    ; if (_title_obj = doctitle partition: true, use_fallback: true).subtitle?; 
    ; _buf << ("<h1>".freeze); _buf << ((slice_text _title_obj.title, (_slice = header.option? :slice)).to_s); 
    ; _buf << ("</h1><h2>".freeze); _buf << ((slice_text _title_obj.subtitle, _slice).to_s); 
    ; _buf << ("</h2>".freeze); else; 
    ; _buf << ("<h1>".freeze); _buf << ((@header.title).to_s); 
    ; _buf << ("</h1>".freeze); end; preamble = @document.find_by context: :preamble; 
    ; unless preamble.nil? or preamble.length == 0; 
    ; _buf << ("<div class=\"preamble\">".freeze); _buf << ((preamble.pop.content).to_s); 
    ; _buf << ("</div>".freeze); end; _buf << ((generate_authors(@document)).to_s); 
    ; _buf << ("</section>".freeze); _buf
  end
end

#convert_toc(node, opts = {}) ⇒ Object



670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
# File 'lib/asciidoctor-revealjs/converter.rb', line 670

def convert_toc(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _buf << ("<div id=\"toc\"".freeze); _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(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _buf << (" class=\"".freeze); _buf << ((_temple_html_attributeremover1).to_s); _buf << ("\"".freeze); end; _buf << ("><div id=\"toctitle\">".freeze); 
    ; _buf << (((document.attr 'toc-title')).to_s); 
    ; _buf << ("</div>".freeze); 
    ; _buf << ((converter.convert document, 'outline').to_s); 
    ; _buf << ("</div>".freeze); _buf
  end
end

#convert_ulist(node, opts = {}) ⇒ Object



1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
# File 'lib/asciidoctor-revealjs/converter.rb', line 1275

def convert_ulist(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; if (checklist = (option? :checklist) ? 'checklist' : nil); 
    ; if option? :interactive; 
    ; marker_checked = '<input type="checkbox" data-item-complete="1" checked>'; 
    ; marker_unchecked = '<input type="checkbox" data-item-complete="0">'; 
    ; else; 
    ; if @document.attr? :icons, 'font'; 
    ; marker_checked = '<i class="icon-check"></i>'; 
    ; marker_unchecked = '<i class="icon-check-empty"></i>'; 
    ; else; 
    ; 
    ; marker_checked = '<input type="checkbox" data-item-complete="1" checked disabled>'; 
    ; marker_unchecked = '<input type="checkbox" data-item-complete="0" disabled>'; 
    ; end; end; end; _slim_controls1 = html_tag('div', { :id => @id, :class => ['ulist', checklist, @style, role] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<ul".freeze); _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(" ")).to_s); else; _temple_html_attributeremover1 << ((_slim_codeattributes1).to_s); end; _temple_html_attributeremover1; if !_temple_html_attributeremover1.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover1).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << (">".freeze); 
    ; items.each do |item|; 
    ; _slim_controls2 << ("<li".freeze); _temple_html_attributeremover2 = ''; _slim_codeattributes2 = ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step')); if Array === _slim_codeattributes2; _slim_codeattributes2 = _slim_codeattributes2.flatten; _slim_codeattributes2.map!(&:to_s); _slim_codeattributes2.reject!(&:empty?); _temple_html_attributeremover2 << ((_slim_codeattributes2.join(" ")).to_s); else; _temple_html_attributeremover2 << ((_slim_codeattributes2).to_s); end; _temple_html_attributeremover2; if !_temple_html_attributeremover2.empty?; _slim_controls2 << (" class=\"".freeze); _slim_controls2 << ((_temple_html_attributeremover2).to_s); _slim_controls2 << ("\"".freeze); end; _slim_controls2 << ("><p>".freeze); 
    ; 
    ; if checklist && (item.attr? :checkbox); 
    ; _slim_controls2 << ((%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text})).to_s); 
    ; else; 
    ; _slim_controls2 << ((item.text).to_s); 
    ; end; _slim_controls2 << ("</p>".freeze); if item.blocks?; 
    ; _slim_controls2 << ((item.content).to_s); 
    ; end; _slim_controls2 << ("</li>".freeze); end; _slim_controls2 << ("</ul>".freeze); _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_verse(node, opts = {}) ⇒ Object



1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/asciidoctor-revealjs/converter.rb', line 1330

def convert_verse(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; _slim_controls1 = html_tag('div', { :id => @id, :class => ['verseblock', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; _slim_controls2 << ("<pre class=\"content\">".freeze); _slim_controls2 << ((content).to_s); 
    ; _slim_controls2 << ("</pre>".freeze); attribution = (attr? :attribution) ? (attr :attribution) : nil; 
    ; citetitle = (attr? :citetitle) ? (attr :citetitle) : nil; 
    ; if attribution || citetitle; 
    ; _slim_controls2 << ("<div class=\"attribution\">".freeze); 
    ; if citetitle; 
    ; _slim_controls2 << ("<cite>".freeze); _slim_controls2 << ((citetitle).to_s); 
    ; _slim_controls2 << ("</cite>".freeze); end; if attribution; 
    ; if citetitle; 
    ; _slim_controls2 << ("<br>".freeze); 
    ; end; _slim_controls2 << ("&#8212; ".freeze); _slim_controls2 << ((attribution).to_s); 
    ; end; _slim_controls2 << ("</div>".freeze); end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#convert_video(node, opts = {}) ⇒ Object



1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
# File 'lib/asciidoctor-revealjs/converter.rb', line 1352

def convert_video(node, opts = {})
  node.extend(Helpers)
  node.instance_eval do
    converter.set_local_variables(binding, opts) unless opts.empty?
    _buf = ''; 
    ; 
    ; no_stretch = ((attr? :width) || (attr? :height)); 
    ; width = (attr? :width) ? (attr :width) : "100%"; 
    ; height = (attr? :height) ? (attr :height) : "100%"; 
    ; 
    ; _slim_controls1 = html_tag('div', { :id => @id, :class => ['videoblock', @style, role, (no_stretch ? nil : 'stretch'), ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))] }.merge(data_attrs(@attributes))) do; _slim_controls2 = ''; 
    ; if title?; 
    ; _slim_controls2 << ("<div class=\"title\">".freeze); _slim_controls2 << ((captioned_title).to_s); 
    ; _slim_controls2 << ("</div>".freeze); end; case attr :poster; 
    ; when 'vimeo'; 
    ; unless (asset_uri_scheme = (attr :asset_uri_scheme, 'https')).empty?; 
    ; asset_uri_scheme = %(#{asset_uri_scheme}:); 
    ; end; start_anchor = (attr? :start) ? "#at=#{attr :start}" : nil; 
    ; delimiter = ['?']; 
    ; loop_param = (option? 'loop') ? %(#{delimiter.pop || '&amp;'}loop=1) : ''; 
    ; muted_param = (option? 'muted') ? %(#{delimiter.pop || '&amp;'}muted=1) : ''; 
    ; src = %(#{asset_uri_scheme}//player.vimeo.com/video/#{attr :target}#{loop_param}#{muted_param}#{start_anchor}); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _slim_controls2 << ("<iframe".freeze); _slim_codeattributes1 = (width); if _slim_codeattributes1; if _slim_codeattributes1 == true; _slim_controls2 << (" width".freeze); else; _slim_controls2 << (" width=\"".freeze); _slim_controls2 << ((_slim_codeattributes1).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes2 = (height); if _slim_codeattributes2; if _slim_codeattributes2 == true; _slim_controls2 << (" height".freeze); else; _slim_controls2 << (" height=\"".freeze); _slim_controls2 << ((_slim_codeattributes2).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes3 = src; if _slim_codeattributes3; if _slim_codeattributes3 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes3).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes4 = 0; if _slim_codeattributes4; if _slim_codeattributes4 == true; _slim_controls2 << (" frameborder".freeze); else; _slim_controls2 << (" frameborder=\"".freeze); _slim_controls2 << ((_slim_codeattributes4).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (" webkitAllowFullScreen mozallowfullscreen allowFullScreen".freeze); _slim_codeattributes5 = (option? 'autoplay'); if _slim_codeattributes5; if _slim_codeattributes5 == true; _slim_controls2 << (" data-autoplay".freeze); else; _slim_controls2 << (" data-autoplay=\"".freeze); _slim_controls2 << ((_slim_codeattributes5).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes6 = ((option? 'autoplay') ? "autoplay" : nil); if _slim_codeattributes6; if _slim_codeattributes6 == true; _slim_controls2 << (" allow".freeze); else; _slim_controls2 << (" allow=\"".freeze); _slim_controls2 << ((_slim_codeattributes6).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << ("></iframe>".freeze); 
    ; when 'youtube'; 
    ; unless (asset_uri_scheme = (attr :asset_uri_scheme, 'https')).empty?; 
    ; asset_uri_scheme = %(#{asset_uri_scheme}:); 
    ; end; params = ['rel=0']; 
    ; params << "start=#{attr :start}" if attr? :start; 
    ; params << "end=#{attr :end}" if attr? :end; 
    ; params << "loop=1" if option? 'loop'; 
    ; params << "mute=1" if option? 'muted'; 
    ; params << "controls=0" if option? 'nocontrols'; 
    ; src = %(#{asset_uri_scheme}//www.youtube.com/embed/#{attr :target}?#{params * '&amp;'}); 
    ; 
    ; 
    ; 
    ; 
    ; 
    ; _slim_controls2 << ("<iframe".freeze); _slim_codeattributes7 = (width); if _slim_codeattributes7; if _slim_codeattributes7 == true; _slim_controls2 << (" width".freeze); else; _slim_controls2 << (" width=\"".freeze); _slim_controls2 << ((_slim_codeattributes7).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes8 = (height); if _slim_codeattributes8; if _slim_codeattributes8 == true; _slim_controls2 << (" height".freeze); else; _slim_controls2 << (" height=\"".freeze); _slim_controls2 << ((_slim_codeattributes8).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes9 = src; if _slim_codeattributes9; if _slim_codeattributes9 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes9).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes10 = 0; if _slim_codeattributes10; if _slim_codeattributes10 == true; _slim_controls2 << (" frameborder".freeze); else; _slim_controls2 << (" frameborder=\"".freeze); _slim_controls2 << ((_slim_codeattributes10).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes11 = !(option? 'nofullscreen'); if _slim_codeattributes11; if _slim_codeattributes11 == true; _slim_controls2 << (" allowfullscreen".freeze); else; _slim_controls2 << (" allowfullscreen=\"".freeze); _slim_controls2 << ((_slim_codeattributes11).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes12 = (option? 'autoplay'); if _slim_codeattributes12; if _slim_codeattributes12 == true; _slim_controls2 << (" data-autoplay".freeze); else; _slim_controls2 << (" data-autoplay=\"".freeze); _slim_controls2 << ((_slim_codeattributes12).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes13 = ((option? 'autoplay') ? "autoplay" : nil); if _slim_codeattributes13; if _slim_codeattributes13 == true; _slim_controls2 << (" allow".freeze); else; _slim_controls2 << (" allow=\"".freeze); _slim_controls2 << ((_slim_codeattributes13).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << ("></iframe>".freeze); 
    ; else; 
    ; 
    ; 
    ; 
    ; _slim_controls2 << ("<video".freeze); _slim_codeattributes14 = media_uri(attr :target); if _slim_codeattributes14; if _slim_codeattributes14 == true; _slim_controls2 << (" src".freeze); else; _slim_controls2 << (" src=\"".freeze); _slim_controls2 << ((_slim_codeattributes14).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes15 = (width); if _slim_codeattributes15; if _slim_codeattributes15 == true; _slim_controls2 << (" width".freeze); else; _slim_controls2 << (" width=\"".freeze); _slim_controls2 << ((_slim_codeattributes15).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes16 = (height); if _slim_codeattributes16; if _slim_codeattributes16 == true; _slim_controls2 << (" height".freeze); else; _slim_controls2 << (" height=\"".freeze); _slim_controls2 << ((_slim_codeattributes16).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes17 = ((attr :poster) ? media_uri(attr :poster) : nil); if _slim_codeattributes17; if _slim_codeattributes17 == true; _slim_controls2 << (" poster".freeze); else; _slim_controls2 << (" poster=\"".freeze); _slim_controls2 << ((_slim_codeattributes17).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes18 = (option? 'autoplay'); if _slim_codeattributes18; if _slim_codeattributes18 == true; _slim_controls2 << (" data-autoplay".freeze); else; _slim_controls2 << (" data-autoplay=\"".freeze); _slim_controls2 << ((_slim_codeattributes18).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes19 = !(option? 'nocontrols'); if _slim_codeattributes19; if _slim_codeattributes19 == true; _slim_controls2 << (" controls".freeze); else; _slim_controls2 << (" controls=\"".freeze); _slim_controls2 << ((_slim_codeattributes19).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_codeattributes20 = (option? 'loop'); if _slim_codeattributes20; if _slim_codeattributes20 == true; _slim_controls2 << (" loop".freeze); else; _slim_controls2 << (" loop=\"".freeze); _slim_controls2 << ((_slim_codeattributes20).to_s); _slim_controls2 << ("\"".freeze); end; end; _slim_controls2 << (">Your browser does not support the video tag.</video>".freeze); 
    ; 
    ; end; _slim_controls2; end; _buf << ((_slim_controls1).to_s); _buf
  end
end

#set_local_variables(binding, vars) ⇒ Object

—————— End of generated transformation methods ——————#



1850
1851
1852
1853
1854
# File 'lib/asciidoctor-revealjs/converter.rb', line 1850

def set_local_variables(binding, vars)
  vars.each do |key, val|
    binding.local_variable_set(key.to_sym, val)
  end
end