Home    |    GitHub Page    |    API    |    FAQ

Making Joplin recognise YAML front matter

Is there a way to make Joplin understand that if the note starts with three dashes than it is YAML and it should show it say as preformatted text till the ending three dashes?

Adding extra new lines and ugly hacks the display problem, but the dashes are interpreted as break.

1 Like

Why not use a yaml code block?

```yaml
Front matter: here
```

I never thought of that and it's a great solution while in Joplin. But once exported, apps like say Hugo: The world's fastest framework for building websites gohugo.io, won't play that nice. That's why I'm looking for a way that Joplin will get

---
data: X
variable: Y
--- 

and not formatted if these are the first characters.

Sounds like you need a plugin for this.

You need to write a joplin data api plugin. . .