ghostguild-org/app/composables/useMarkdown.js
Jennie Robinson Faber 1f7a0f40c0 Add Markdown support and update member features
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
2025-10-07 15:07:27 +01:00

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
}
}