// Copyright (c) 2016-2017 Nicolas Musset. All rights reserved. // This file is licensed under the MIT license. // See the LICENSE.md file in the project root for more information. using System; // ReSharper disable once CheckNamespace namespace Markdig.Agg { /// /// Provides extension methods for to enable several Markdown extensions. /// public static class MarkdownExtensions { /// /// Uses all extensions supported by Markdig.Agg. /// /// The pipeline. /// The modified pipeline public static MarkdownPipelineBuilder UseSupportedExtensions(this MarkdownPipelineBuilder pipeline) { if (pipeline == null) throw new ArgumentNullException(nameof(pipeline)); return pipeline .UseEmphasisExtras() .UseGridTables() .UsePipeTables() .UseTaskLists() .UseAutoLinks(); } } }