Skip to content

Instantly share code, notes, and snippets.

@lowstz
Created March 9, 2012 07:15
Show Gist options
  • Save lowstz/2005429 to your computer and use it in GitHub Desktop.
Save lowstz/2005429 to your computer and use it in GitHub Desktop.
test raw tag for octopress
--- 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