예제 #1
0
        string GetMarkdownFile(string file)
        {
            string text;
            if (Path.IsPathRooted(file))
            {
                text=File.ReadAllText(file);
            }
            else
            {
                text = File.ReadAllText(Path.Combine(Path.GetDirectoryName(InputFile), file.Trim()));
            }

            text=SkimMarkdown(text); //skim it before transforming!
            text = new TextParser(text,file).Parse();

            return GetMarkdown().Transform(text);
        }
예제 #2
0
        string GetFile(string file)
        {
            string text;
            if (Path.IsPathRooted(file))
            {
                text=new TextParser(file).Parse();
            }
            else
            {
                text = new TextParser(Path.Combine(Path.GetDirectoryName(InputFile), file.Trim())).Parse();
            }

            return text;
        }