Skip to content

Commit

Permalink
Fix code typo #460
Browse files Browse the repository at this point in the history
  • Loading branch information
picturepan2 committed Sep 9, 2018
1 parent 9ad6309 commit b353eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ <h3 class="s-title">Code<a class="anchor" href="#code" aria-hidden="true">#</a><
<p>Code is used for styling inline and multiline code snippets.</p>
<p>For inline code, you can use the &lt;code&gt; element.
For multiline code snippet blocks, you can use &lt;pre&gt; with the <code>code</code> class as a container, and add &lt;code&gt; inside it.
The <code>data-lang</code> ibute is rendered as the language name in the top right.
The <code>data-lang</code> attribute is rendered as the language name in the top right.
</p>
<pre class="code" data-lang="HTML"><code><span class="hljs-comment">&lt;!-- code snippets --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"btn"</span>&gt;</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/contents/code.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ p Code is used for styling inline and multiline code snippets.
p
| For inline code, you can use the #{'<code>'} element.
| For multiline code snippet blocks, you can use #{'<pre>'} with the #[code code] class as a container, and add #{'<code>'} inside it.
| The #[code data-lang] ibute is rendered as the language name in the top right.
| The #[code data-lang] attribute is rendered as the language name in the top right.

pre.code(data-lang='HTML')
code
Expand Down

0 comments on commit b353eff

Please sign in to comment.