I'm using the prism library to highlight some HTML, CSS and JavaScript code. It does an amazing job for the most part, except when it comes to line numbers.
They look like:
As you can see, they are misaligned. How can I fix this? My current code looks like:
<div id="html-display" class="display code-display">
<button class="explain-code">Explain this code</button>
<span class="current-code"><pre class="line-numbers"><code class="language-markup">
<!DOCTYPE html>
<html>
<head>
<title>a</title>
<meta charset="UTF-8">
<meta name="author" content="A A">
<link rel="stylesheet" type="text/css" href="design.css">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1>Test</h1>
</body>
</html></code></pre></span>
</div>