Class: Paru::PandocFilter::Note

Inherits:
Inline show all
Defined in:
lib/paru/filter/note.rb

Overview

A Note node like a foot note or end note. It is a special node in the sense that itself is an Inline level node, but its contents are Block level.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Paru::PandocFilter::Inline

Instance Method Details

#can_act_as_both_block_and_inline?Boolean

Although Note is defined to be inline, often it will act like a block element.

Returns:

  • (Boolean)

    true



48
49
50
# File 'lib/paru/filter/note.rb', line 48

def can_act_as_both_block_and_inline?
  true
end

#has_block?Boolean

Has this Note block contents?

Returns:

  • (Boolean)

    true



33
34
35
# File 'lib/paru/filter/note.rb', line 33

def has_block?
  true
end

#has_inline?Boolean

Has this Note inline contents?

Returns:

  • (Boolean)

    false



40
41
42
# File 'lib/paru/filter/note.rb', line 40

def has_inline?
  false
end