Sha256: 75906a88569f06ae781b70a5ee1f8106c076a69b2bda6bd6f5165bdf182fc96d

Contents?: true

Size: 386 Bytes

Versions: 54

Compression:

Stored size: 386 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})
.mathblock id=@id class=role
  - if title?
    .title=title
  .content=equation

Version data entries

54 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.7.pre.9 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.8 lib/resources/backends/slim/revealjs-redhat/block_math.html.slim
hyla-1.0.7.pre.8 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.8 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.7 lib/resources/backends/slim/revealjs-redhat/block_math.html.slim
hyla-1.0.7.pre.7 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.7 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.6 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.6 lib/resources/backends/slim/revealjs-redhat/block_math.html.slim
hyla-1.0.7.pre.6 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/revealjs-redhat/block_math.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/revealjs-redhat/block_math.html.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/html5/block_math.html.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/revealjs/block_math.html.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/html5/block_math.html.slim