Class: MaquinaRemend::Handlers::ComparisonOperators
- Defined in:
- lib/maquina_remend/handlers/comparison_operators.rb
Overview
Case 27. A ">" used as a comparison inside a line is escaped, so it cannot be mistaken for a blockquote marker when the line is re-parsed. A ">" that genuinely starts a line is left alone: that one really is a blockquote.
Enabled by comparison_operators:, on by default.
MaquinaRemend.call("- a > b") # => "- a \\> b"
MaquinaRemend.call("> quoted") # => "> quoted"
Constant Summary collapse
- COMPARISON =
A
>surrounded by whitespace and not already escaped — a comparison, not a blockquote marker. /(?<=\s)(?<!\\)>(?=\s)/- BLOCKQUOTE_LINE =
A line that genuinely starts with a blockquote marker. Lines matching this are skipped entirely.
/\A {0,3}>/
Instance Attribute Summary
Attributes inherited from Base
Method Summary
Methods inherited from Base
Constructor Details
This class inherits a constructor from MaquinaRemend::Handlers::Base