Skip to content

Variable: CSSDOC_INLINE_REF ​

ts
const CSSDOC_INLINE_REF: Regex<"\\{@(?<tag>[\\w-]+)\\s+(?<ref>\\S+)\\}", {
  flags: "u";
  names: {
     ref: string;
     tag: string;
  };
}>;

Defined in: packages/regex/src/tiers/css-doc-grammar.ts:199

CssDoc Inline Reference from grammar. Inline reference in prose (e.g., {@link}, {@inheritDoc}).

Example ​

ts
CSSDOC_INLINE_REF.exec("{@link button}")?.groups // { tag: "link", ref: "button" }

Released under the MIT License