PowerShell / MarkdownRender

MIT License
33 stars 20 forks source link

Load Markdig in an assembly load context #25

Open michaeltlombardi opened 1 year ago

michaeltlombardi commented 1 year ago

Summary of the new feature / enhancement

As a developer working on a PowerShell module that interacts with Markdown, I want to be able to use newer versions of the Markdig library without conflict errors. Because Markdig isn't loaded in an ALC, using a newer version of Markdig in my module isn't feasible.

One reason to desire a newer version of the library is to gain access to the round-tripping support and more walkable AST.

Proposed technical implementation details (optional)

Update the module to load Markdig in an ALC. No change is required to the version of Markdig used.

JustinGrote commented 1 year ago

I'm willing to attempt a PR if there is interest @adityapatwardhan @xtqqczze? I'm working on a streaming markdown parser for chatgpt and this is getting in the way.

adityapatwardhan commented 1 year ago

Please do. Would love a PR.

JustinGrote commented 1 year ago

@adityapatwardhan sounds good, can you add the up for grabs label?

michaeltlombardi commented 1 year ago

Hugely appreciated, @JustinGrote - I've been bouncing off this problem for the Documentarian module(s) for a bit and this would be radically helpful!