Sha256: 8f91c2d99e89ea7665615d80eca7795c03f25bac85cc7c14b3126a1634946fee

Contents?: true

Size: 384 Bytes

Versions: 15

Compression:

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
asciidoctor-revealjs-4.0.1 templates/stem.html.slim
asciidoctor-revealjs-4.0.0 templates/stem.html.slim
asciidoctor-revealjs-3.1.0 templates/stem.html.slim
asciidoctor-revealjs-3.0.0 templates/stem.html.slim
asciidoctor-revealjs-3.0.0.pre.rc1 templates/stem.html.slim
asciidoctor-revealjs-2.0.1 templates/stem.html.slim
asciidoctor-revealjs-2.0.0 templates/stem.html.slim
asciidoctor-revealjs-1.1.3 templates/stem.html.slim
asciidoctor-revealjs-1.1.1 templates/stem.html.slim
asciidoctor-revealjs-1.1.0 templates/stem.html.slim
asciidoctor-revealjs-1.0.4 templates/slim/block_stem.html.slim
asciidoctor-revealjs-1.0.3 templates/slim/block_stem.html.slim
asciidoctor-revealjs-1.0.2 templates/slim/block_stem.html.slim
asciidoctor-revealjs-1.0.1 templates/slim/block_stem.html.slim
asciidoctor-revealjs-1.0.0 templates/slim/block_stem.html.slim