judge4c/src/components/content/mdx-components.tsx

9 lines
397 B
TypeScript
Raw Normal View History

import { HTMLAttributes } from "react";
import { Pre } from "@/components/content/pre";
export const MdxComponents = {
pre: (props: HTMLAttributes<HTMLPreElement>) => <Pre {...props} />,
ol: (props: HTMLAttributes<HTMLOListElement>) => <ol style={{ listStyle: "revert" }} {...props} />,
ul: (props: HTMLAttributes<HTMLUListElement>) => <ul style={{ listStyle: "revert" }} {...props} />,
};