Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume_shiki/plugins/attribute/mod.ts>Options

Syntax highlighter for Lume using shiki
Latest
interface Options
import { type Options } from "https://deno.land/x/lume_shiki@0.0.16/plugins/attribute/mod.ts";

Properties

optional
attribute: string

HTML attribute to use for labeling

optional
format: (value: string, document: Document) => Node | string | (Node | string)[]

Label format

optional
position: "top" | "bottom"

Label position

optional
getDefaultValue: (el: Element, document: Document) => string | undefined

Get default attribute value when not specified

optional
order: number

attribre order position