+++ author = "Hugo Authors" title = "Demo - Support for code, pre, kbd, mark" date = "2024-04-30" description = "Guide to advanced usage of Anubis2" tags = [ "emoji", ] +++ ## 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 \ tag Direct Code `A verrrrrryyyyy llloooonnnggg coooodeeee` `code` `is` `here` ```plain multiline code here ``` ```typescript // ```typescript interface User { id: number firstName: string lastName: string role: string } ``` ```typescript {linenos=inline} // ```typescript {linenos=inline} function updateUser(id: number, update: Partial) { const user = getUser(id) const newUser = { ...user, ...update } saveUser(id, newUser) } ``` ```typescript {linenos=true} // ```typescript {linenos=true} function updateUser(id: number, update: Partial) { const user = getUser(id) const newUser = { ...user, ...update } saveUser(id, newUser) } ``` ### Support for \ tag
pre text
pre text
pre text
### Support for \ 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 \ 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 \ in \
This is a KBD inside a pre. 
### Support for \ in \ (❌ Should not be used) This is a KBD inside a code. ### Support for \ in \ (❌ Should not be used)
This is a CODE inside a pre. 
### Support for \ in \ (❌ Should not be used) This is a CODE inside a kbd. ### Support for \ in \ (❌ Should not be used) This is a
PRE
inside a kbd.
### Support for \ in \ (❌ Should not be used) This is a
PRE
inside a code.
### Support for \ in \ This is a MARK inside a kbd. ### Support for \ in \ This is a MARK inside a code. ### Support for \ in \
This is a MARK inside a pre.