Class: Coradoc::CoreModel::StemBlock

Inherits:
Block
  • Object
show all
Defined in:
lib/coradoc/core_model/stem_block.rb

Overview

STEM block — mathematical/scientific content authored in LaTeX, AsciiMath, or another STEM markup. Carries a language attribute so downstream renderers know which interpreter to invoke.

AsciiDoc surface forms:

[stem]\n++++\nx^2\n++++        # language: "latex" (default)
[latexmath]\n++++\nx^2\n++++   # language: "latex"
[asciimath]\n++++\nx^2\n++++   # language: "asciimath"

Instance Attribute Summary

Attributes inherited from Block

#block_semantic_type, #callouts, #content, #delimiter_type, #language, #lines

Attributes inherited from Base

#element_attributes, #id, #metadata_entries, #title

Class Method Summary collapse

Methods inherited from Block

#element_type, #resolve_semantic_type

Methods included from ChildrenContent

#flat_text, included, #renderable_content

Methods included from HasChildren

#has_children?

Methods inherited from Base

#accept, #attr, #body_content?, build, #flat_text, #metadata, #semantically_equivalent?, #set_attr, #set_metadata, #whitespace_only?

Class Method Details

.semantic_typeObject



16
17
18
# File 'lib/coradoc/core_model/stem_block.rb', line 16

def self.semantic_type
  :stem
end