mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
- Restored default list decorations (bullet points for `ul` and numbers for `ol`). - Solution based on issue from `sindresorhus/github-markdown-css#103`.
9 lines
397 B
TypeScript
9 lines
397 B
TypeScript
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} />,
|
|
};
|