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 error on front-matter YAML lists #33

Open kingdase opened 5 months ago

kingdase commented 5 months ago

Hello,

Unfortunately, the parser cannot handle YAML lists properly.

To be precise: The parser stops working completely if there is a list in the YAML block.

Example:

---
categories:
- Development
- VIM
date: "2012-04-06"
description: "spf13-vim is a cross platform distribution of vim plugins and resources for Vim."
slug: "spf13-vim-3-0-release-and-new-website"
tags:
- .vimrc
- plugins
- spf13-vim
- vim
title: "spf13-vim 3.0 release and new website"
---

## Hello Word

HUGO Front matter docu

simeononsecurity commented 1 month ago

@kingdase Yes, right now it is only set up for TOML. The parser for this implementation is actually quite complex. Will likely need help to implement a fix for this one.