Skip to content

PrismUtil

Unofficial

Prism utility functions.

Import:

import type { PrismUtil } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface PrismUtil

Methods

Method Returns Description
clone(o) T Deep clones an object.
encode(tokens) PrismTokenStream Encodes tokens by replacing special HTML characters.
objId(obj) number Returns a unique identifier for the given object.
type(o) string Returns the type of the given value as a string.

Links to this page: