vendor/gems/BlueCloth-1.0.0/lib/bluecloth.rb
### Transform Markdown-style blockquotes in a copy of the specified +str+
### and return it.
Transform Markdown-style blockquotes in a copy of the specified +str+
and return it.
Transform Markdown - style blockquotes in a copy of the specified + str + and return it .
def transform_block_quotes( str, rs )
		@log.debug " Transforming block quotes"
		str.gsub( BlockQuoteRegexp ) {|quote|
			@log.debug "Making blockquote from %p" % quote
			quote.gsub!( /^ *> ?/, '' ) 
			quote.gsub!( /^ +$/, '' )	
			indent = " " * TabWidth
			quoted = %{<blockquote>\n%s\n</blockquote>\n\n} %
				apply_block_transforms( quote, rs ).
				gsub( /^/, indent ).
				gsub( PreChunk ) {|m| m.gsub(/^#{indent}/o, '') }
			@log.debug "Blockquoted chunk is: %p" % quoted
			quoted
		}
	end
def transform_block_quotes ( str , rs ) @log . debug " Transforming block quotes" str . gsub ( BlockQuoteRegexp ) { | quote | @log . debug "Making blockquote from %p" % quote quote . gsub! ( / ^ *> ? / , '' ) quote . gsub! ( / ^ +$ / , '' ) indent = " " * TabWidth quoted = %{<blockquote>\n%s\n</blockquote>\n\n} % apply_block_transforms ( quote , rs ) . gsub ( / ^ / , indent ) . gsub ( PreChunk ) { | m | m . gsub ( / ^ #{ indent } /o , '' ) } @log . debug "Blockquoted chunk is: %p" % quoted quoted } end
Transform Markdown-style blockquotes in a copy of the specified +str+
and return it.
Transform Markdown - style blockquotes in a copy of the specified + str + and return it .
# Trim one level of quoting  # Trim whitespace-only lines
str
<not_specific>
rs
<not_specific>