We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d417f29 commit d75c2ccCopy full SHA for d75c2cc
src/pages/home/previews/markdown_with_word_wrap.tsx
@@ -1,11 +1,18 @@
1
import { Markdown, MaybeLoading } from "~/components"
2
import { useFetchText } from "~/hooks"
3
+import { objStore } from "~/store"
4
+import { ext } from "~/utils"
5
6
const MdPreview = () => {
7
const [content] = useFetchText()
8
return (
9
<MaybeLoading loading={content.loading}>
- <Markdown class="word-wrap" children={content()?.content} toc />
10
+ <Markdown
11
+ class="word-wrap"
12
+ children={content()?.content}
13
+ ext={ext(objStore.obj.name)}
14
+ toc
15
+ />
16
</MaybeLoading>
17
)
18
}
0 commit comments