Skip to content

Commit

Permalink
Minor adjustment to webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Dec 23, 2020
1 parent 470d497 commit f381d40
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions plugins/line-highlight/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,15 @@ <h2>Line 43, starting from line 41</h2>
<p><a href="plugins/line-highlight/#play.50-55,60">Linking example</a></p>

<h2>Compatible with <a href="plugins/line-numbers">Line numbers</a></h2>
<pre class="line-numbers" data-src="plugins/line-numbers/index.html" data-line="7" data-start="-5" style="white-space:pre-wrap;"></pre>
<pre class="line-numbers" data-src="plugins/line-numbers/index.html" data-line="1" data-start="-5" style="white-space:pre-wrap;"></pre>

<h2>With line numbers</h2>
<pre class="line-numbers" data-line="43" data-start="41" data-src="plugins/line-highlight/prism-line-highlight.js"></pre>
<p>Even with some extra content before the <code>code</code> element.</p>
<pre class="line-numbers" data-line="7"><div style="padding: .25em">Some content</div><hr/><code class="language-markup" id="foo"></code></pre>
<script>document.querySelector('#foo').textContent = document.documentElement.innerHTML;</script>

<h2>With linkable line numbers</h2>
<pre id="foo" class="line-numbers linkable-line-numbers" data-start="20" data-src="plugins/line-highlight/prism-line-highlight.js"></pre>

<p>Even with some extra content before the <code>code</code> element.</p>
<pre class="line-numbers" data-line="7" data-start="-5"><div style="padding: .25em">Some content</div><hr/><code class="language-markup" id="foo"></code></pre>
<script>document.querySelector('#foo').textContent = document.documentElement.innerHTML;</script>
</section>

<footer data-src="assets/templates/footer.html" data-type="text/html"></footer>
Expand Down

0 comments on commit f381d40

Please sign in to comment.