Skip to content

Instantly share code, notes, and snippets.

@geckotang
Last active April 26, 2016 07:23
Show Gist options
  • Save geckotang/c83ceefdc494f8adf46a8df09972a179 to your computer and use it in GitHub Desktop.
Save geckotang/c83ceefdc494f8adf46a8df09972a179 to your computer and use it in GitHub Desktop.
pre: code
| #{'<dl>'}
| #{' <dt>説明対象</dt>'}
| #{' <dd>説明文</dd>'}
| #{'</dl>'}
pre: code.
#{'<dl>'}
#{' <dt>説明対象</dt>'}
#{' <dd>説明文</dd>'}
#{'</dl>'}
-
escapedStr = `
<dl>
<dt>Title</dt>
<dd>Description</dd>
</dl>
`
pre: code #{escapedStr}
<pre><code>&lt;dl&gt;
&lt;dt&gt;説明対象&lt;/dt&gt;
&lt;dd&gt;説明文&lt;/dd&gt;
&lt;/dl&gt;</code></pre>
<pre><code>&lt;dl&gt;
&lt;dt&gt;説明対象&lt;/dt&gt;
&lt;dd&gt;説明文&lt;/dd&gt;
&lt;/dl&gt;</code></pre>
<pre><code>
&lt;dl&gt;
&lt;dt&gt;説明対象&lt;/dt&gt;
&lt;dd&gt;説明文&lt;/dd&gt;
&lt;/dl&gt;
</code></pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment