redcloth
redcloth copied to clipboard
Any way to only parse certain tags?
Hi, is there any way to only parse certain tags, for example if I want to only parse bc..
:
Given an input string:
text = "h5. My Header\r\n\r\nbc.. Hello world\r\n\r\np. Bye world"
I want to get an output like:
RedCloth.new(text).to_html #=> "h5. My Header\r\n\r\n<pre><code>Hello world</code></pre>\r\n\r\nBye world"
Nor really
p>The sun is reportedly hot,1 just like freshly baked potatoes.1 Ice is cold.2
- a b Ouch.
- a Brrr.