2.19.0
(feat): Add support for type-safe undiscriminated unions with the new use-undiscriminated-unions configuration option.
Undiscriminated unions provide a clean, type-safe way to work with values that can be one of several types:
This provides better IntelliSense support and compile-time safety compared to working with generic object types.
(chore): Reduce NuGet package dependencies. The OneOf library is no longer required when undiscriminated unions are not used,
resulting in smaller package sizes and fewer transitive dependencies.
2.18.1
(fix): While most <s and >s should be escaped to < and > to avoid mangling the output,
genuine XML/HTML tags should be kept as-is; this commit scans for potential valid tags and
prevents their being escaped. (Ambiguous cases are escaped.)
Before:
After: