(content []byte, fullPath, origContent string)
| 185 | } |
| 186 | |
| 187 | func parseOriginalFrontmatter(content []byte, fullPath, origContent string) (*FrontmatterResult, error) { |
| 188 | if strings.HasPrefix(fullPath, BuiltinPathPrefix) { |
| 189 | return ExtractFrontmatterFromBuiltinFile(fullPath, content) |
| 190 | } |
| 191 | return ExtractFrontmatterFromContent(origContent) |
| 192 | } |
| 193 | |
| 194 | func frontmatterMapOrEmpty(result *FrontmatterResult, parseErr error) map[string]any { |
| 195 | if parseErr != nil { |
no test coverage detected