Code Variants

Long lines (default)

function createNode(nodeName: string, options: { key: string }) {
  return true
}

Long lines will have scrollbars.

Line wrapping

<script>(function(d,s){if(window.Promise&&[].includes&&Object.assign&&window.Map)return;var js,sc=d.getElementsByTagName(s)[0];js=d.createElement(s);js.src='https://cdn.polyfill.io/v2/polyfill.min.js';sc.parentNode.insertBefore(js, sc);}(document,'script'))</script>

#↓ Source Code

```js {.wrap}
<script>(function(d,s){if(window.Promise&&[].includes&&Object.assign&&window.Map)return;var js,sc=d.getElementsByTagName(s)[0];js=d.createElement(s);js.src='https://cdn.polyfill.io/v2/polyfill.min.js';sc.parentNode.insertBefore(js, sc);}(document,'script'))</script>
\```

Add {.wrap} to wrap long lines.

Code with headings

#index.js

quickref.me.is(() => {
    awesome.site()
})

#other.js

here.is.some.more()

#↓ Source Code

#### index.js

js quickref.me.is(() => { awesome.site() }) ```

other.js

here.is.some.more()
\```

Code blocks can have headings.

Basic code

quickref.me.is(() => {
  awesome.site()
})
here.is.some.more()

#↓ Source Code

```js
quickref.me.is(() => {
 awesome.site()
})
\```

js here.is.some.more() ``` ``` Code blocks can be placed one after the other.

Comments