markdown-to-jsx
Version:
A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS, Vue, Markdown, and HTML output available with full customization.
12 lines (11 loc) • 466 B
TypeScript
/**
* Decode a single HTML entity reference using the browser's native HTML parser.
* Returns undefined if decoding fails or changes nothing (unknown entity).
*/
declare function decodeEntity(name: string): string | undefined;
/**
* Empty placeholder - browser uses DOM decoding for lookups
* This exists for API compatibility with the full entity table
*/
declare var NAMED_CODES_TO_UNICODE: Record<string, string>;
export { decodeEntity, NAMED_CODES_TO_UNICODE };