private static string GeneratePage(IEpubMetadata metadata, IHtmlResourceManager resourceManager, ICssStyleManager styleManager)
        {
            var document = new DocumentMarkupNode(
                "Content",
                ListOf(
                    new HeaderMarkupNode(
                        metadata.Title,
                        1,
                        ListOf(
                            new ListMarkupNode(
                                ListStyle.Numbered,
                                from page in metadata.Pages
                                select new HyperlinkMarkupNode(
                                    page.Uri.GetPackagePath(),
                                    ListOf(new TextRunMarkupNode(page.Title))
                                    )
                                )
                            )
                        )
                    )
                );

            var compiler = new HtmlCompiler(resourceManager, styleManager);
            var html = compiler.Compile(document);

            return html.ToString();
        }
 public NavigatorCompiledContent(IEpubMetadata metadata)
 {
     this.metadata = metadata;
 }
 public ContentPageCompiledContent(IEpubMetadata metadata, IHtmlResourceManager resourceManager, ICssStyleManager styleManager)
     : base(ContainerPathes.ContentPagePath, GeneratePage(metadata, resourceManager, styleManager), "Content")
 {
 }