Class: Markbridge::Processors::DiscourseMarkdown::ScanResult

Inherits:
Data
  • Object
show all
Defined in:
lib/markbridge/processors/discourse_markdown/scanner.rb

Overview

Result of scanning Discourse Markdown

Instance Attribute Summary collapse

Instance Attribute Details

#markdownString (readonly)

the processed markdown with placeholders

Returns:

  • (String)

    the current value of markdown



9
10
11
# File 'lib/markbridge/processors/discourse_markdown/scanner.rb', line 9

def markdown
  @markdown
end

#nodesArray<AST::Node> (readonly)

extracted AST nodes in order of appearance

Returns:

  • (Array<AST::Node>)

    the current value of nodes



9
10
11
# File 'lib/markbridge/processors/discourse_markdown/scanner.rb', line 9

def nodes
  @nodes
end