note.mjs
sha256:7fe782411f3a68b39f17777b274349b30752365c13438b26bfd602c687de2c65
feat(web): rebrand Parentier family to Ourware on landing
Human
minor
⚠ breaking
22 days ago
| 1 | /** |
| 2 | * Single-note markdown serialization for MCP note resources (Issue #1 Phase A1). |
| 3 | */ |
| 4 | |
| 5 | import yaml from 'js-yaml'; |
| 6 | |
| 7 | /** |
| 8 | * @param {{ path: string, frontmatter: object, body: string }} note |
| 9 | * @returns {string} |
| 10 | */ |
| 11 | export function noteToMarkdown(note) { |
| 12 | const fm = note.frontmatter && Object.keys(note.frontmatter).length > 0 |
| 13 | ? `---\n${yaml.dump(note.frontmatter).trimEnd()}\n---\n` |
| 14 | : ''; |
| 15 | return `${fm}${note.body || ''}`; |
| 16 | } |
File History
1 commit
sha256:7fe782411f3a68b39f17777b274349b30752365c13438b26bfd602c687de2c65
feat(web): rebrand Parentier family to Ourware on landing
Human
minor
⚠
22 days ago