Class: Coradoc::Markdown::Serializer::Serializers::HardLineBreak

Inherits:
ElementSerializer show all
Defined in:
lib/coradoc/markdown/serializer/serializers/hard_line_break.rb

Overview

Hard line break. Output depends on ‘config.hard_break` (not part of the 5 spec options yet — defaults to CommonMark two-trailing-spaces).

Instance Method Summary collapse

Methods inherited from ElementSerializer

call, handles?, #handles?, handles_type, #handles_type

Instance Method Details

#call(_element, _ctx) ⇒ Object



15
16
17
# File 'lib/coradoc/markdown/serializer/serializers/hard_line_break.rb', line 15

def call(_element, _ctx)
  "  \n"
end