Created
March 9, 2012 07:15
-
-
Save lowstz/2005429 to your computer and use it in GitHub Desktop.
test raw tag for octopress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 2012-03-09-test.markdown 2012-03-09 10:21:46.000000000 +0800 | |
+++ 2012-03-09-test-raw.markdown 2012-03-09 15:11:59.905807062 +0800 | |
@@ -9,18 +9,21 @@ | |
This type of code highlight can not work properly in the blog page. | |
{% codeblock lang:ruby %} | |
+{% raw %} | |
{% capture description %} | |
{% if page.description %} | |
{{ page.description }} | |
{% else %} | |
{{ content|raw_content }} | |
{% endif %} | |
- {% endcapture %} | |
+ {% endcapture %} | |
+{% endraw %} | |
{% endcodeblock %} | |
--- | |
This type of code highlight can work properly, but report warning when I run `rake generate` | |
+{% raw %} | |
``` ruby | |
{% capture description %} | |
{% if page.description %} | |
@@ -30,3 +33,4 @@ | |
{% endif %} | |
{% endcapture %} | |
``` | |
+{% endraw %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment