Class: Coradoc::Mirror::Node::Admonition

Inherits:
Coradoc::Mirror::Node show all
Defined in:
lib/coradoc/mirror/node.rb

Overview

── Admonition (NOTE, TIP, WARNING, CAUTION, IMPORTANT) ──

The Ruby attribute name is ‘admonition_type` (kept distinct from Node’s built-in ‘type` discriminator). The wire attribute name is `type` per the @metanorma/mirror JS contract. The rename happens via a `map` declaration — no hand-rolled to_h/from_h.

Defined Under Namespace

Classes: Attrs

Constant Summary collapse

PM_TYPE =
'admonition'

Constants inherited from Coradoc::Mirror::Node

POLYMORPHIC, TYPE_TO_CLASS

Method Summary

Methods inherited from Coradoc::Mirror::Node

#text_content