I'm using Docsify to serve documentation about my project. For the syntax highlighting I want to use prism.js. Sadly, the highlighting part does not work. I've also tried all the suggestions mentioned here.
In my index.html I have <script src="//unpkg.com/prismjs/components/prism-ruby.js"></script>
included, as docsify mentioned here. And in my file.md
where I want to show some Ruby code:
<pre><code class="language-ruby">
def hello(name)
p "Hello #{name}"
end
</code></pre>
But the Ruby code is not being highlighted.
HTML being rendered:
<pre><code class="language-ruby">
def hello(name)
p "Hello #{name}"
end
</code></pre>
What am I missing here?