RedCloth - unbeautifying quotes

E

Eli Bendersky

Hello,

My question pertains to a popular Ruby library - RedCloth (translator
for Textile and Markdown to HTML). I hope this list is the proper
place to ask the question, if not please accept my apologies and point
me to the correct address.

Well, I'm using RedCloth extensively to process the posts in my blog.
I write them in a text file with Textile markup, and then run the
'redcloth' command line tool to generate HTML.

I have a problem when writing postings with code. I enclose code in
<pre> tags, and don't want RedCloth to process it. However, it does,
and most annoyingly turns all my single quotes ' into "pretty" slanted
quotes, which renders the code impossible to copy-paste and run.

Any way to circumvent this trouble without digging in the guts of
RedCloth ?

Thanks in advance,
Eli
 
J

Justin Collins

Eli said:
Hello,

My question pertains to a popular Ruby library - RedCloth (translator
for Textile and Markdown to HTML). I hope this list is the proper
place to ask the question, if not please accept my apologies and point
me to the correct address.

Well, I'm using RedCloth extensively to process the posts in my blog.
I write them in a text file with Textile markup, and then run the
'redcloth' command line tool to generate HTML.

I have a problem when writing postings with code. I enclose code in
<pre> tags, and don't want RedCloth to process it. However, it does,
and most annoyingly turns all my single quotes ' into "pretty" slanted
quotes, which renders the code impossible to copy-paste and run.

Any way to circumvent this trouble without digging in the guts of
RedCloth ?

Thanks in advance,
Eli

I would suggest looking into SuperRedCloth instead
(http://code.whytheluckystiff.net/redcloth/wiki/SuperRedCloth). It is in
development and so still has quirks, but in my opinion is much better
than the old RedCloth. I'm not sure how commandline processing works
with it, however.

-Justin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top