Skip to main content

Anubis2 Demo Site

Demo - Support for code, pre, kbd, mark

Table of Contents

# Individual support for code, pre, kbd, mark

code

pre

CRTL + K + B + D

Feel free to switch between the light and dark themes to see the rendering differences.

## Support for <code> tag

Direct Code

A verrrrrryyyyy llloooonnnggg coooodeeee

code is here

multiline
code
here
// ```typescript
interface User {
  id: number
  firstName: string
  lastName: string
  role: string
}
1// ```typescript {linenos=inline}
2function updateUser(id: number, update: Partial<User>) {
3  const user = getUser(id)
4  const newUser = { ...user, ...update }
5  saveUser(id, newUser)
6}
1
2
3
4
5
6
// ```typescript {linenos=true}
function updateUser(id: number, update: Partial<User>) {
  const user = getUser(id)
  const newUser = { ...user, ...update }
  saveUser(id, newUser)
}

## Support for <pre> tag

pre text
pre text
pre text

## Support for <kbd> tag

Press CTRL + C to copy text (Windows).

Press CMD + C to copy text (Mac OS).

Press CTRL+ALT+Delete to end the session.

## Support for <mark> tag

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.

## Support for <kbd> in <pre>

This is a KBD inside a pre. 

## Support for <kbd> in <code> (❌ Should not be used)

This is a KBD inside a code.

## Support for <code> in <pre> (❌ Should not be used)

This is a CODE inside a pre. 

## Support for <code> in <kbd> (❌ Should not be used)

This is a CODE inside a kbd.

## Support for <pre> in <kbd> (❌ Should not be used)

This is a

PRE
inside a kbd.

## Support for <pre> in <code> (❌ Should not be used)

This is a

PRE
inside a code.

## Support for <mark> in <kbd>

This is a MARK inside a kbd.

## Support for <mark> in <code>

This is a MARK inside a code.

## Support for <mark> in <pre>

This is a MARK inside a pre.