Exemplo n.º 1
0
 public XiliumMarkdownDeepFormatter() : base()
 {
     this._instance                = new Xilium.MarkdownDeep.Markdown();
     this._instance.ExtraMode      = true;
     this._instance.MarkdownInHtml = true;
     this._instance.SafeMode       = false;
 }
 public XiliumMarkdownDeepFormatter(DataEditor dataEditor, Options options)
     : base(dataEditor, options)
 {
     this._instance                           = new Xilium.MarkdownDeep.Markdown();
     this._instance.SafeMode                  = this.Options.SafeMode;
     this._instance.ExtraMode                 = this.Options.ExtraMode;
     this._instance.MarkdownInHtml            = this.Options.MarkdownInHtml;
     this._instance.AutoHeadingIDs            = this.Options.AutoHeadingIDs;
     this._instance.NewWindowForExternalLinks = this.Options.NewWindowForExternalLinks;
     this._instance.NewWindowForLocalLinks    = this.Options.NewWindowForLocalLinks;
     this._instance.NoFollowLinks             = this.Options.NoFollowLinks;
 }
Exemplo n.º 3
0
        public static string Transform(string input)
        {
            var markdown = new Xilium.MarkdownDeep.Markdown();

            return(markdown.Transform(input));
        }