Class: Coradoc::Mirror::Node::HardBreak

Inherits:
Node
  • Object
show all
Defined in:
lib/coradoc/mirror/node.rb

Overview

Hard line break — author-requested explicit break (foo +\nbar in AsciiDoc, <br> semantics in HTML). Distinct from SoftBreak so downstream renderers can map it to <br> rather than collapsing the break into a soft newline-or-space convention. ProseMirror's schema uses hard_break for the same purpose.

Constant Summary collapse

PM_TYPE =
'hard_break'