Skip to content

Instantly share code, notes, and snippets.

@tyuki39
Created May 12, 2011 11:58
Show Gist options
  • Save tyuki39/968368 to your computer and use it in GitHub Desktop.
Save tyuki39/968368 to your computer and use it in GitHub Desktop.
カスタムのインラインマークアップを定義する方法
.. role:: ロール名
という行を書くと、カスタムのインラインマークアップを定義することができ、
:ロール名:`ロール名を適用する文字列`
と書くと、次のHTMLコードに変換されます。
<span class="ロール名">ロール名を適用する文字列</span>
あとは、CSSに ロール名 をもつclassを定義すればOKです。
test
======
.. role:: red
.. role:: strike
:red:`colortest`
:strike:`striketest`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment