public IFrontMatter TryParse(string text, string sourceFilePath, out TextPosition position) { var frontMatter = YamlUtil.FromYamlFrontMatter(text, out position); if (frontMatter is ScriptObject obj) { return(new YamlFrontMatter(obj)); } return(null); }
public object Load(FileEntry file) { var text = file.ReadAllText(); return(YamlUtil.FromText(text)); }