WeblateOrg / WeblateOrg/weblate
Checks - Formatted strings - Add support for Hugo shortcodes
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
### Describe the problem
I'm using gohugo for languages-in-floss.eu
Content is written in markdown
This content has internal links inside it using a specific Hugo syntax: https://codeberg.org/languages-in-floss/site/src/commit/fec9eb847944a1576626053c989360524ab498a7/content/fr/page/about.md?display=source#L7
I'd like to be able to enable a check to prevent typos:
https://codeberg.org/languages-in-floss/site/src/commit/fec9eb847944a1576626053c989360524ab498a7/l10n/po/zh_Hant/page/about.po#L32
there is two ways to create internal links:
https://gohugo.io/shortcodes/ref/#article
https://gohugo.io/shortcodes/relref/#article
Also, there is two notations: https://gohugo.io/content-management/shortcodes/#notation
Is there already a way to do this with current checks?
### Solution brainstorm
My expectation would be: the content of the relref should alway be the same.
### Describe alternatives you have considered
I'll use standard markdown internal links in Hugo, and ask translators to update their translation
### Screenshots
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.