simeononsecurity / glotta

Translate Hugo markdown file content and create index bundles
https://simeononsecurity.com/other/glotta-streamlining-hugo-text-translation-for-global-reach/
MIT License
2 stars 2 forks source link

Parser issue: heading removed #34

Open kingdase opened 5 months ago

kingdase commented 5 months ago

The parser removes heading statements if there is no empty line after the front-matter block

Example:

---
date: "2024-01-11"
description: "Hello World"
title: "Hello World"
---
## Hello World

becomes

---
date: "2024-01-11"
description: "Hallo Welt"
title: "Hallo Welt"
---
 Hallo Welt

as a workaround, insert a blank line after the front-matter block

---
date: "2024-01-11"
description: "Hello World"
title: "Hello World"
---

## Hello World

becomes

---
date: "2024-01-11"
description: "Hallo Welt"
title: "Hallo Welt"
---

## Hallo Welt
simeononsecurity commented 1 month ago

@kingdase The properly linted hugo syntax requires a blank line after finishing the frontmatter. Will look into fixing