Skip to content

Commit e233d57

Browse files
committed
optimize exported Markdown style, add H2 to author
1 parent 1e6359b commit e233d57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/components/Share/MarkdownView.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ const MarkdownView: FC<Props> = ({ messages }) => {
1313
const content = useMemo(() => {
1414
return messages
1515
.filter((m) => !!m.text)
16-
.map((m) => `**${m.author}**: ` + m.text)
16+
.map((m) => `## ${m.author}` + '\n\n' + m.text)
1717
.join('\n\n')
1818
}, [messages])
1919

20+
2021
const copy = useCallback(() => {
2122
navigator.clipboard.writeText(content)
2223
setCopied(true)

0 commit comments

Comments
 (0)