I am using Jekyll and trying to display some code in a post, but I can't figure out why the code wont display on different lines. From what I understand it's supposed to word wrap with the way I have it set up.
I have this in my config file:
markdown: kramdown
highlighter: rouge
kramdown:
input: GFM
My code is:
{% highlight javascript linenos %}
var text = prompt("Write your text.");
alert("You have written " + text.length + " characters, you have " + (140 - text.length) + " characters remaining.");
{% endhighlight %}
It displays like:
Also on mobile it just removes all of the styling and displays like a regular <code>
tag.
You can view the page here: https://alignthem.com/07/03/2022/javascript-length-and-concatenate/