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())); }
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())); }