blog.textfile.org結城浩のブログ

blog.textfile.org

Verbatim plugin for Octopress

Usage

Input:

{% verbatim tag:p %}
$$a_1, a_2, a_3, \ldots$$
{% endverbatim %}

Output HTML:

1
2
3
<p>
$$a_1, a_2, a_3, \ldots$$
</p>

What you see (if your blog is MathJax enabled):

$$a_1, a_2, a_3, \ldots$$

Description

The content between verbatim and endverbatim is rendered ‘as is’.

You can use tag option to wrap the content.

The main purpose for the author of this plugin is to protect LaTeX (MathJax) special charaters like *, &, or _ from markdown converter.

Note: You’d better use {% math %}

Bugs

  • \\ is converted to &#92;. Workaround: use \cr instead.

Source

https://gist.github.com/hyuki0000/9150132