Skip to content

Attribute Syntax#

View Markdown

Attribute syntax is opt-in and runs as a post-render HTML transform.

import { oxContent } from "@ox-content/vite-plugin";

export default {
  plugins: [
    oxContent({
      attrs: true,
    }),
  ],
};
## Install {.anchor .highlight data-section=install}

[Docs](./index.md){.external data-kind=guide}

![Package graph](./package-graph.png){.w-1/2 .mx-auto width=480}

Supported tokens include #id, .class, and key=value. Link attributes attach to the generated <a>, and image classes, dimensions, and safe data attributes stay on the generated <img>.

Last updated: