public string GetPageImageFullPath()
        {
            var outputDirectory = writer.GetOutputDirectory();

            EnsureDirectoryExists(outputDirectory);
            var filename = ImageDef.GetFilename(pageTitle);

            return(Path.Combine(outputDirectory, FileHelper.MakeValidFileName(filename)));
        }
        public MarkdownGeneratorContext(
            IWriter writer,
            string parentId,
            Dictionary <string, QuickStyleDef> quickStyleDefs, Dictionary <string, TagDef> tagDefs)
        {
            this.writer         = writer;
            this.ParentId       = parentId;
            this.quickStyleDefs = quickStyleDefs;
            this.tagDefs        = tagDefs;

            lastContent = null;
            tableDef    = new TableDef();
            imageDef    = new ImageDef();
        }
 public string GetPageImageFilename()
 {
     return(ImageDef.GetFilename(pageTitle));
 }