# frozen_string_literal: true module Redcarpet module Form module Extension module Block # A textarea block # # Ex: [textarea]{value="Hello world!" rows="4" cols="10"} Text box #
class Textarea def self.pattern /\[textarea\]([{][^}]*[}])?([^{}\]\[)]*)/ end def self.default_attributes { 'name' => Util.random_string, 'rows' => '3', 'value' => '' } end def self.html(matches) html = '' end end end end end end