-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from dkasak/fenced-code-block-additional-tag
When rendering fenced code blocks, add `language-LANG` class as well.
- Loading branch information
Showing
5 changed files
with
7 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
<pre><code class="cpp">here is some cpp code | ||
<pre><code class="cpp language-cpp">here is some cpp code | ||
</code></pre> | ||
|
||
<pre><code class="lang-cpp">some lang-cpp code | ||
</code></pre> | ||
|
||
<pre><code class="language-cpp">and some language-cpp code | ||
</code></pre> | ||
|
||
<pre><code class="nohighlight">some code without highlighting | ||
<pre><code class="nohighlight language-nohighlight">some code without highlighting | ||
</code></pre> | ||
|
||
<p>That's using the <em>fenced-code-blocks</em> and <em>highlightjs-lang</em> extra.</p> | ||
|
||
<p>Here is an empty one (just to check):</p> | ||
|
||
<pre><code class="cpp"> | ||
<pre><code class="cpp language-cpp"> | ||
</code></pre> | ||
|
||
<p>Here is one at the end of the file:</p> | ||
|
||
<pre><code class="cpp"> is indentation maintained? | ||
<pre><code class="cpp language-cpp"> is indentation maintained? | ||
</code></pre> |
This file contains 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