module Dionysus::Redcarpet::Plaintext
Public Instance Methods
preprocess_with_plaintext(full_document)
click to toggle source
# File lib/dionysus/redcarpet/plaintext.rb, line 17 def preprocess_with_plaintext(full_document) if full_document =~ FILE_DIRECTIVE_REGEXP if $1 == "md" and $2 == "plaintext" full_document = "```\n#{full_document.gsub(FILE_DIRECTIVE_REGEXP, "")}\n```" end end if respond_to? :preprocess_without_plaintext preprocess_without_plaintext(full_document) else full_document end end