Exemplo n.º 1
0
        protected virtual string ApplyTransformation(string markdownContent)
        {
            foreach (var preTransformation in Tranformers.GetTransformers())
            {
                markdownContent = preTransformation.Invoke(markdownContent);
            }

            return(_markdown.Transform(markdownContent).Replace("\n", "\r\n"));
        }
		public MarkdownService(IContentProvider contentProvider)
        {
            ContentProvider = contentProvider;

            _markdown = new MarkdownSharp.Markdown(CreateMarkdownOptions());

            _invariantTextInfo = CultureInfo.InvariantCulture.TextInfo;

			Tranformers = new Tranformers();
        }
Exemplo n.º 3
0
        public MarkdownService(IContentProvider contentProvider)
        {
            ContentProvider = contentProvider;

            _markdown = new MarkdownSharp.Markdown(CreateMarkdownOptions());

            _invariantTextInfo = CultureInfo.InvariantCulture.TextInfo;

            Tranformers = new Tranformers();
        }