Class: Markdown::Merge::CommentTracker

Inherits:
Ast::Merge::Comment::HashTrackerBase
  • Object
show all
Defined in:
lib/markdown/merge/comment_tracker.rb

Overview

Conservatively tracks standalone HTML comment lines in Markdown sources.

Constant Summary collapse

STANDALONE_HTML_COMMENT_REGEX =
/\A(?<indent>\s*)<!--\s?(?<text>.*?)\s?-->\s*\z/

Instance Method Summary collapse

Constructor Details

#initialize(lines) ⇒ CommentTracker

Returns a new instance of CommentTracker.



9
10
11
# File 'lib/markdown/merge/comment_tracker.rb', line 9

def initialize(lines)
  super(Array(lines))
end