mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 18:16:07 +02:00
fix up highlight.js support and add syntax for code examples, few homework check fixes
This commit is contained in:
parent
1f6ef958dc
commit
c133252cb6
74 changed files with 29 additions and 4930 deletions
|
@ -20,13 +20,7 @@
|
|||
<div class="welcome">
|
||||
<h4>Lists</h4>
|
||||
<p>You can make an ordered (numbered) list like so:</p>
|
||||
<div style="text-align: left; font-weight: bold">
|
||||
<ol><br>
|
||||
<li>First item</li><br>
|
||||
<li>Second item</li><br>
|
||||
<li>Third item</li><br>
|
||||
</ol>
|
||||
</div>
|
||||
<pre><code class="html"><%= erb :'tutorial/html/code_examples/7_1', layout: false %></code></pre>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
@ -47,7 +41,7 @@
|
|||
|
||||
var liText = ul.find('li').first().text()
|
||||
|
||||
if(liText == '' || liText.match(/\s+/)) {
|
||||
if(liText == '') {
|
||||
notok("I don't see any text in the <strong>li</strong>. Try using it like this: <strong><li>Yarn</li></strong>")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue