File tree 2 files changed +11
-12
lines changed
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1685
1685
self = utils . merge-dicts (self , config )
1686
1686
}
1687
1687
assert (bodies . named (). len () == 0 , message : " unexpected named arguments:" + repr (bodies . named (). keys ()))
1688
- let setting-with-auto-offset-for-heading (body ) = {
1688
+ let setting-fn (body ) = {
1689
1689
set heading (offset : self . at (" slide-level" , default : 0 )) if self . at (" auto-offset-for-heading" , default : true )
1690
+ show : body => {
1691
+ if self . at (" show-strong-with-alert" , default : true ) {
1692
+ show strong : self . methods . alert . with (self : self )
1693
+ body
1694
+ } else {
1695
+ body
1696
+ }
1697
+ }
1690
1698
setting (body )
1691
1699
}
1692
1700
let composer-with-side-by-side (.. args ) = {
1810
1818
)
1811
1819
header = page-preamble (self ) + header
1812
1820
set page (.. (self . page + page-extra-args + (header : header , footer : footer )))
1813
- setting-with-auto-offset-for-heading (subslide-preamble (self ) + composer-with-side-by-side (.. conts ))
1821
+ setting-fn (subslide-preamble (self ) + composer-with-side-by-side (.. conts ))
1814
1822
} else {
1815
1823
// render all the subslides
1816
1824
let result = ()
1825
1833
// update the counter in the first subslide only
1826
1834
result . push ({
1827
1835
set page (.. (self . page + page-extra-args + (header : new-header , footer : footer )))
1828
- setting-with-auto-offset-for-heading (subslide-preamble (self ) + composer-with-side-by-side (.. conts ))
1836
+ setting-fn (subslide-preamble (self ) + composer-with-side-by-side (.. conts ))
1829
1837
})
1830
1838
}
1831
1839
// return the result
Original file line number Diff line number Diff line change 34
34
body => body
35
35
}
36
36
37
- show : body => {
38
- if self . at (" show-strong-with-alert" , default : true ) {
39
- show strong : self . methods . alert . with (self : self )
40
- body
41
- } else {
42
- body
43
- }
44
- }
45
-
46
37
show : body => {
47
38
if self . at (" scale-list-items" , default : none ) != none {
48
39
magic . scale-list-items (scale : self . at (" scale-list-items" , default : none ), body )
You can’t perform that action at this time.
0 commit comments