module Blackrug

Blackrug is this groundbreaking parser that allows you to sweep markdown under the rug by wrapping it by <!—Blackrug—> Typical markdown parser will render the blackrugged elements. You need to pre-parse it via Blackrug

Public Class Methods

sweep(text) click to toggle source
# File lib/blackrug.rb, line 15
def sweep(text)
  text.split(/(?<!`)<!---Blackrug--->(?!`)/).select.with_index { |_, i| i.even? }.join
end
Also aliased as: 🧹
🧹(text)
Alias for: sweep