Commit Graph

17 Commits

Author SHA1 Message Date
0c9ad2b8b0 refactor(mdx-preview): use MdxComponents and add className prop 2025-03-24 10:31:09 +08:00
458bdfbf42 fix(useMonacoTheme): return theme ID instead of the full theme object 2025-03-20 14:47:16 +08:00
154b66d524 refactor(hooks): rename monacoTheme to currentTheme in useMonacoTheme 2025-03-19 14:58:11 +08:00
0159998234 refactor(components): replace custom pre component with shared Pre component for MDX preview 2025-03-07 11:43:41 +08:00
2a42c711bf refactor(mdx-preview): replace next-themes with useMonacoTheme 2025-03-06 21:29:52 +08:00
800c35cb01 feat(code-editor, mdx-preview): update loading state padding for improved aesthetics 2025-02-26 15:58:40 +08:00
e108244121 feat(mdx-preview): enhance loading state with padding and rounded corners for better aesthetics 2025-02-26 15:08:27 +08:00
89ea5b4684 feat(mdx-preview): integrate CodeBlockWithCopy for enhanced code block functionality 2025-02-26 14:32:11 +08:00
037f8f625d fix(mdx-preview): comment out unused rehype plugins and adjust ScrollArea max height 2025-02-26 11:34:46 +08:00
844e9f0cca fix(mdx-preview): adjust max height calculation for ScrollArea component 2025-02-26 11:05:33 +08:00
2e33dea853 feat(mdx-preview): add support for math rendering with KaTeX 2025-02-25 15:09:44 +08:00
50d1f4cf8e refactor(editor): update editor configuration paths and values 2025-02-25 14:39:55 +08:00
93bcd45c8a fix(editor): update height classes for code editor and MDX preview components 2025-02-24 12:32:48 +08:00
3b89e5de0e fix(editor): adjust height calculation for code editor and MDX preview components 2025-02-24 11:45:31 +08:00
88be7cbf58 fix(layout): adjust height calculations for improved layout consistency 2025-02-23 20:31:28 +08:00
f7e94564be feat(components/mdx-preview): add rehype-slug and rehype-autolink-headings for MDX previews
This commit adds `rehype-slug` and `rehype-autolink-headings` to the MDX preview component.

- `rehype-slug` generates unique IDs for headings.
- `rehype-autolink-headings` adds anchor links to headings, improving navigation.

This enhances the usability of MDX previews by enabling users to easily link to specific sections within the content.
2025-02-23 15:02:36 +08:00
a699fc8069 refactor(components): rename problem-description.tsx to mdx-preview.tsx 2025-02-21 21:06:06 +08:00