mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
Follow-up to #901. IsRootFrontmatterLine took the caller's trimmed line only to test for blank and comment lines, and its callers disagreed on how they trimmed it (ParseSkillName trimmed spaces and tabs on the left, the rest trimmed all whitespace). The helper now trims the raw line itself, so there is one definition of a blank line and one argument fewer to get wrong. Two tests added in #901 covered behaviour that change did not touch. The ParseFrontmatterFields row is removed, and the ParseFrontmatterMap test is reduced to the one case that guards what the skill format page promises: nested metadata mappings and lists are kept. Docs: the skill format page now recommends metadata for custom fields, but the "Version tracking" example in creating-skills still showed top-level version and author. It now matches. The sentence saying sync preserves existing last_edited values is shortened, because skillshare has no such field and the wording suggested it does. Both edits are applied to en, ja, ko, zh-Hans and zh-Hant.