예제 #1
0
        public IDocumentResult Process(IPSDocumentOption option, Document document)
        {
            if (document == null)
            {
                return(null);
            }

            var context = new MarkdownProcessorContext(option, document);

            Document(context);
            return(new DocumentResult(document.Context, markdown: context.GetString()));
        }
예제 #2
0
        public IDocumentResult Process(PSDocumentOption option, Document document)
        {
            if (document == null)
            {
                return(null);
            }

            var name    = document.Name;
            var culture = document.Culture;
            var context = new MarkdownProcessorContext(option, document);

            Document(context);
            return(new DocumentResult(name, culture, markdown: context.GetString()));
        }