Code blocks

July 21, 2025

Test filename, line highlighting and empty lines

JS
console.log("hello world");

console.log("goodbye world");

Test showLineNumbers and word highlighting

SCALA
object Hello {
  def main(args: Array[String]) = {
    println("hello, world")
  }
}

object Hello {
  def main(args: Array[String]) = {
    println("hello, world")
  }
}

Test highlighting inline code

import React from 'react'{:js}

Test without specified language

TEXT
hello world

Test with code block default language

TEXT
const links = [
  { href: '/settings', label: 'Settings' },
  { href: '/support', label: 'Support' },
  { href: '/license', label: 'License' },
]

Link to

Link to