Created
May 12, 2011 11:58
-
-
Save tyuki39/968368 to your computer and use it in GitHub Desktop.
カスタムのインラインマークアップを定義する方法
This file contains hidden or 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
.. role:: ロール名 | |
という行を書くと、カスタムのインラインマークアップを定義することができ、 | |
:ロール名:`ロール名を適用する文字列` | |
と書くと、次のHTMLコードに変換されます。 | |
<span class="ロール名">ロール名を適用する文字列</span> | |
あとは、CSSに ロール名 をもつclassを定義すればOKです。 |
This file contains hidden or 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
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