UNPKG

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.

18 lines (17 loc) 779 B
/** * Auto-generated HTML entity mappings for CommonMark compliance * Generated from https://html.spec.whatwg.org/entities.json * Generated by scripts/generate-entities.ts * * Simple object mapping entity names to Unicode characters. * Stores only lowercase versions when case variants map to the same Unicode (saves ~8.8 KB). * Case-sensitive entities (where uppercase/lowercase differ) are stored with both keys. */ declare const NAMED_CODES_TO_UNICODE: Record<string, string>; /** * Decode a named entity using the lookup table. * Returns the decoded character or undefined if not found. * This function enables browser builds to swap in DOM-based decoding. */ declare function decodeEntity(name: string): string | undefined; export { decodeEntity, NAMED_CODES_TO_UNICODE };