Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore front matter in Markdown #5399

Open
Cryolitia opened this issue Oct 15, 2024 · 0 comments
Open

Ignore front matter in Markdown #5399

Cryolitia opened this issue Oct 15, 2024 · 0 comments

Comments

@Cryolitia
Copy link

Describe the problem

Nowadays, many blog frame would use markdown with front matter, it's a small piece at the start of a markdown file, it looks like:

---
date: 2024-02-02T04:14:54-08:00
draft: false
params:
  author: John Smith
title: Example
weight: 10
---

or in hugo may be

+++
date = 2024-02-02T04:14:54-08:00
draft = false
title = 'Example'
weight = 10
[params]
  author = 'John Smith'
+++

Now, weblate will only parse this picec as plain text like title: Base Pitch parent: Pitch Naturalisation nav_order: 2

I would like to let translate parse or just ignore it.

hugo: https://gohugo.io/content-management/front-matter/
vitepress: https://vitepress.dev/zh/guide/frontmatter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant