Exemple #1
0
        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);
        }
Exemple #2
0
        public object Load(FileEntry file)
        {
            var text = file.ReadAllText();

            return(YamlUtil.FromText(text));
        }