jfedick
jfedick

Reputation: 1362

How do I escape the markdown parser for certain pieces of text?

I'm using textile to generate HTML for a specific page and in the copy, there is a need for (c) to be generated without the copyright symbol. Unfortunately, textile always does it.

Is there a way in textile to escape the parsing it does to change it (I know I could put spaces on either side of the "c," but that doesn't look nice)?

Upvotes: 15

Views: 7695

Answers (3)

heft
heft

Reputation: 1

for textile:I attempted various formatting options such as == ^2^ ==, <notextile> ^2^</notextile>, notextile., notextile.., and @ ^2^ @, but none of them produced the desired result. Finally, I found that using \^2\^ correctly outputs ^2^.

Upvotes: 0

Tyler Rinker
Tyler Rinker

Reputation: 109844

Also using &#40;c) will yield (c) rather than ©.

Upvotes: 14

jfedick
jfedick

Reputation: 1362

Using the <notextile></notextile> tags in the markdown will cause the parser to skip whatever is between those two tags. RedCloth docs

Upvotes: 14

Related Questions