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 #12786

Closed
Cryolitia opened this issue Oct 15, 2024 · 2 comments
Closed

Ignore front matter in Markdown #12786

Cryolitia opened this issue Oct 15, 2024 · 2 comments
Labels
bug Something is broken. duplicate Similar issue or pull request already exists. translate-toolkit Issues which need to be fixed in the translate-toolkit

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.

Describe the solution you would like

Just ignore the front matter, and copy it to translated files as is.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

@nijel nijel added bug Something is broken. translate-toolkit Issues which need to be fixed in the translate-toolkit labels Oct 15, 2024
Copy link

The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable).

@nijel nijel added the duplicate Similar issue or pull request already exists. label Oct 16, 2024
@nijel
Copy link
Member

nijel commented Oct 16, 2024

Duplicate of translate/translate#5399

@nijel nijel marked this as a duplicate of translate/translate#5399 Oct 16, 2024
@nijel nijel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken. duplicate Similar issue or pull request already exists. translate-toolkit Issues which need to be fixed in the translate-toolkit
Projects
None yet
Development

No branches or pull requests

2 participants