The commit adds Markdown rendering capabilities and makes several UI/UX improvements across member-related features including profile display, peer support badges, and navigation structure. Includes: - Added @tailwindcss/typography plugin - New Markdown rendering composable - Simplified member navigation links - Enhanced member profile layout and styling - Added peer support badge component - Improved mobile responsiveness - Removed redundant icons and simplified UI
15 lines
236 B
JavaScript
15 lines
236 B
JavaScript
import { marked } from 'marked'
|
|
|
|
export const useMarkdown = () => {
|
|
const render = (markdown) => {
|
|
if (!markdown) return ''
|
|
return marked(markdown, {
|
|
breaks: true,
|
|
gfm: true
|
|
})
|
|
}
|
|
|
|
return {
|
|
render
|
|
}
|
|
}
|