0

I am writing a blog about block in Objective-C, by markdown and octopress. I wrote a lot of "^" character, which means the starting of block. But the markdown rendered it as a superscript automatically. I don't want this converting and would like to keep the "^" just as what it is. What can I do? Thanks!

onevcat
  • 4,591
  • 1
  • 25
  • 31
  • 2
    Did you format it as code with backticks and/or indentation? If it needs to appear in plain text, you should be able to escape it with a backslash, as in ``\^``. – Ry- Apr 28 '13 at 14:56
  • @Dan D. I have to write it as the plain text. There is not problem in the code snippets, but when I use "^" in plain text, it becomes – onevcat Apr 28 '13 at 14:59
  • @minitech I am using backticks. I have tried `\^` but with no luck. The output is something like this: `\some text ` – onevcat Apr 28 '13 at 15:02
  • I don’t know if that’s some kind of weird Octopress-flavoured-Markdown feature, but not being able to escape it sounds like a bug — try taking it up with them. – Ry- Apr 28 '13 at 15:03

1 Answers1

0

I found the answer myself here. Thanks to @minitech, I should search "escape octopress markdown" for my question. Just use the {% raw %} tag so that it will be treated as the raw text. For the superscript, I changed "^" to "{% raw %}^{% endraw %}" and it worked well.

Community
  • 1
  • 1
onevcat
  • 4,591
  • 1
  • 25
  • 31