Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We at https://nhi.no are proud to announce an HTML to PortableText converter written in C# 🎉!
For those who use .NET backend and HTML in their CMS, this can be a nice package to migrate over to sanity or keep operating with a CMS that can only produce HTML but you wish to use a modern frontend framework/library, like React.
It is customizable, and supports adding custom parsers, to create your own data types!
👀 Try it out in the online editor: https://portabletext-frontend-nhi.azurewebsites.net/
📦 Or get the package from NuGet here: https://www.nuget.org/packages/NHI.PortableText/
Source code/docs 📚: https://github.com/nhi/NHI.PortableText.DotNet
❗ Keep in mind, this is an initial release, and we would like some feedback, both from Sanity (cc: @kmelve) on the compliance to the spec, and others on the ease of use.
We welcome PRs and issues in the repository, in fact, there are some beginner-friendly initial issues for those who would like to contribute.
PS: If you know any businesses using C# that wish to try PortableText, please give them a heads-up! We would like to spread that this now exists, and encourage others to contribute/create their own parsers in other languages! We think that PortableText is an amazing format, that should not be limited to JavaScript only. ❤️
Have a nice day! 👋