(b: Map<string, ReactNode[]>, key: string, v: ReactNode[])
| 684 | } |
| 685 | |
| 686 | const cacheSet = (b: Map<string, ReactNode[]>, key: string, v: ReactNode[]) => { |
| 687 | b.set(key, v) |
| 688 | |
| 689 | if (b.size > MD_CACHE_LIMIT) { |
| 690 | b.delete(b.keys().next().value!) |
| 691 | } |
| 692 | } |
| 693 | |
| 694 | function MdImpl({ cols, compact, t, text }: MdProps) { |
| 695 | const nodes = useMemo(() => { |