I am writing a blog using Jekyll 4.0 on Windows 10, and when I use the highlight tag, everything works perfectly, however, once i use the linenos parameter, the web breaks and looks like this:
If I inspect the html source, the code doesn't seem to appear anywhere in the document
This is the markdown I'm using
{% highlight c linenos %}
void main(void) {
// initialize the device
SYSTEM_Initialize();
while (1) {
// LOAD INPUTS TO SHIFT REGISTER
SHIFT_REG_SH_NLD = 0;
SHIFT_REG_CLK = 0;
// SHIFT EACH INPUT ONE BY ONE
for (uint8_t i = 0; i < 8; i++) {
// CHECK IF ANY INPUT IS PRESSED
uint8_t input = SHIFT_REG_INPUT;
// IF PRESSED (PULLED TO LOW) SEND TO IR EMITTER
if (input == LOW) {
ir_emit(i);
}
// ENABLE SHIFTING
SHIFT_REG_SH_NLD = 1;
// MAKE SURE THE SHIFT IS ENABLED
__delay_us(1);
// RISE CLK
SHIFT_REG_CLK = 1;
// MAKE SURE THAT CLK STAYS LOW ENOUGH TIME
__delay_us(1);
SHIFT_REG_CLK = 0;
}
}
}
{% endhighlight %}
I'm using the ThinkSpace theme
Thanks a lot