Sha256: afdd2a38b2cc25e2d4c9c25936a8c7e0690612d891a6e9bd70b7800a46324fc8

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 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})
= html_tag('div', { :id => @id, :class => ['stemblock', role, ('fragment' if (option? :step) || (has_role? 'step') || (attr? 'step'))] }.merge(data_attrs(@attributes)))
  - if title?
    .title=title
  .content=equation

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asciidoctor-revealjs-5.1.0 templates/stem.html.slim
asciidoctor-revealjs-5.0.1 templates/stem.html.slim
asciidoctor-revealjs-5.0.0.rc1 templates/stem.html.slim
asciidoctor-revealjs-4.1.0 templates/stem.html.slim
asciidoctor-revealjs-4.1.0.rc5 templates/stem.html.slim
asciidoctor-revealjs-4.1.0.rc4 templates/stem.html.slim
asciidoctor-revealjs-4.1.0.rc3 templates/stem.html.slim
asciidoctor-revealjs-4.1.0.rc2 templates/stem.html.slim