readme
This commit is contained in:
@@ -6,6 +6,7 @@ import remarkGfm from "remark-gfm";
|
||||
import rehypeHighlight from "rehype-highlight";
|
||||
import "highlight.js/styles/atom-one-dark.min.css";
|
||||
import styles from "./lesson-markdown.module.css";
|
||||
import { mediaUrl } from "@/app/lib/media";
|
||||
|
||||
type TocItem = { level: number; text: string; id: string };
|
||||
|
||||
@@ -120,7 +121,7 @@ export function LessonMarkdown({ content }: { content: string }) {
|
||||
),
|
||||
img: ({ src, alt }) => (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img src={src || ""} alt={alt || ""} loading="lazy" decoding="async" />
|
||||
<img src={mediaUrl(typeof src === "string" ? src : "")} alt={alt || ""} loading="lazy" decoding="async" />
|
||||
),
|
||||
table: ({ children }) => (
|
||||
<div className="overflow-x-auto">
|
||||
|
||||
Reference in New Issue
Block a user