Class: Coradoc::Markdown::Pass

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/markdown/model/pass.rb

Overview

Pass block — raw content passed through verbatim, never rendered as Markdown. Used for embedding HTML or other markup directly.

Markdown has no native pass concept; the content is emitted as-is inside a ‘nomarkdown` kramdown extension or raw HTML passthrough.

Instance Method Summary collapse

Methods inherited from Base

visit, #visit

Constructor Details

#initialize(content:, **rest) ⇒ Pass

Returns a new instance of Pass.



15
16
17
18
# File 'lib/coradoc/markdown/model/pass.rb', line 15

def initialize(content:, **rest)
  super
  @content = content
end