MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / createClass

Function createClass

src/domTree.ts:27–29  ·  view source on GitHub ↗
(classes: string[])

Source from the content-addressed store, hash-verified

25 * with spaces, we also remove empty classes.
26 */
27export const createClass = function(classes: string[]): string {
28 return classes.filter(cls => cls).join(" ");
29};
30
31/**
32 * Serialize a CssStyle object into a semicolon-delimited inline-style string

Callers 7

toNodeMethod · 0.90
toMarkupMethod · 0.90
canCombineFunction · 0.90
toNodeFunction · 0.85
toMarkupFunction · 0.85
toNodeMethod · 0.85
toMarkupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected