public Task Show(string markdown)
        {
            var path = fileSystemOperations.GetTempFileName() + ".md";

            fileSystemOperations.WriteAllText(path, markdown);
            return(shellOpen.Open(path));
        }
Exemple #2
0
        public void FileWriteAllText(string path, string contents)
        {
            FileInfo fileInfo = new FileInfo(path);

            CreateDirectoryAndParents(fileInfo.Directory);
            _fileSystemOperations.WriteAllText(path, contents);
            SetUnixOwnerIfNeeded(path);
        }