Sha256: 433091a787e6a3714ddd3c0e523bd883ee0d63595e8e66f3228b2727c9b5a629

Contents?: true

Size: 401 Bytes

Versions: 21

Compression:

Stored size: 401 Bytes

Contents

- open, close = ::Asciidoctor::BLOCK_MATH_DELIMITERS[@style.to_sym]
- equation = content.strip
- if (@subs.nil? || @subs.empty?) && !(attr? 'subs')
  - equation = sub_specialcharacters equation
- unless (equation.start_with? open) && (equation.end_with? close)
  - equation = %(#{open}#{equation}#{close})
%div{:id=>@id, :class=>['mathblock', role]}
  - if title?
    .title=title
  .content=equation

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.9.pre.3 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.9.pre.2 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.9.pre.1 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.8 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.9 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.8 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.7 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.6 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.5 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.3 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.2 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.7.pre.1 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.6 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.5 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.5.pre.1 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.4 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.3 lib/resources/backends/haml/html5/block_math.html.haml
hyla-1.0.2 lib/resources/backends/haml/html5/block_math.html.haml