mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
[PR #213] [MERGED] Add alternative Use extension method to MarkdownPipelineBuilder that receives an object instance
#868
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/213
Author: @augustoproiete
Created: 2/21/2018
Status: ✅ Merged
Merged: 2/23/2018
Merged by: @xoofx
Base:
master← Head:add-new-use-extension-with-instance📝 Commits (1)
fea2ca5Add alternativeUseextension method toMarkdownPipelineBuilderthat receives an object instance📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
src/Markdig/MarkdownExtensions.cs(+13 -0)📄 Description
This PR adds an overload of the
MarkdownPipelineBuilder.Use<T>method that receives an instance of anIMarkdownExtension, for the cases where the extension has a constructor requiring parameters and cannot be instantiated by the existingUse<T>method.Syntax looks like this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.