Skip to Content
Md2Docx logo Md2Docx

cleanHex()

Updated 10 Nov 2026

cleanHex(hex?): string

Defined in: packages/code/src/themes.ts:6

Sanitizes hex color string by stripping leading # and trimming whitespace.

Parameters

hex?

string

Returns

string

On this page