Literal::Pre (Class)

In: app/models/chunks/literal.rb
Parent: Chunk::Abstract

A literal chunk that protects ‘code’ and ‘pre’ tags from wiki rendering.

Methods

pattern  

Constants

PRE_BLOCKS = "a|pre|code"

Public Class methods

[Source]

    # File app/models/chunks/literal.rb, line 11
11:     def self.pattern() Regexp.new('<('+PRE_BLOCKS+')\b[^>]*?>.*?</\1>', Regexp::MULTILINE) end

[Validate]