logoalt Hacker News

whatyesterday at 8:23 PM1 replyview on HN

The code snippets are highlighted, presumably using microlighter?


Replies

pcthrowawayyesterday at 9:59 PM

That's what I assumed, but when I pasted this JS snippet from the blog post into the playground (ctrl+f "playground", selects JS) on the project page (https://davatron5000.github.io/microlighter/)

    if(document.querySelector('pre>code').length) {
         import('path/to/microlighter/microlighter.min.js');
    }
The highlighting looks completely different. I assumed the top-level commenter was being mildly obtuse, but it looks like they were (perhaps incidentally) correct