Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 865 Bytes

code-blocks.mdx

File metadata and controls

51 lines (34 loc) · 865 Bytes
title date description tag author
Code blocks
2022/7/29
En example of using code blocks in your blog.
web development,JavaScript,GraphQL,C++,Java,React,Next.js,The Guild,MacBook Pro
Dimitri POSTOLOV

Test filename, line highlighting and empty lines

console.log('hello world')






console.log('goodbye world')

Test showLineNumbers and word highlighting

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

hello world

Test link in code

Link to google

Link to GitHub