All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
ElderJames made their first contribution! 🎉
- Added support for .NET Standard 2.0 in the core
Markdown.ColorCode
package.
Dependency Updates:
Package | Change |
---|---|
Markdig (source) | 0.35.0 -> 0.37.0 |
CsharpToColouredHTML.Core | 1.0.42 -> 1.0.44 |
Dependency updates:
Package | Change |
---|---|
CsharpToColouredHTML.Core | 1.0.41 -> 1.0.42 |
HtmlAgilityPack (source) | 1.11.58 -> 1.11.59 |
Markdig (source) | 0.34.0 -> 0.35.0 |
NSubstitute.Analyzers.CSharp | 1.0.16 -> 1.0.17 |
- Introduced a new
Markdown.ColorCode.CSharpToColoredHtml
package that provides improved syntax highlighting for C# code blocks. See the README for more information.
- Include .NET 8 in multi-targeting (#121)
This release includes several breaking changes. See the details below for more info.
The UseColorCode
MarkdownPipelineBuilder
extension method has been changed to take in additional optional parameters. These are:
Parameter | Default | Usage |
---|---|---|
htmlFormatterType |
HtmlFormatterType.Style |
The HTML formatter type to use. Supports inline style-based (default) or CSS class-based code colorization. |
styleDictionary |
StyleDictionary.DefaultDark |
The code colorization style to use. |
additionalLanguages |
null |
Additional languages to augment the built-in languages provided by ColorCode-Universal. |
defaultLanguageId |
null |
A default language ID to use if the language at hand can't be found within the languages provided by ColorCode-Universal (or the additionalLanguages which have augmented them). The default language will also be used if no language is provided for the given code block. |
- Removed the
UseColorCodeWithClassStyling
MarkdownPipelineBuilder
extension method. If you were previously using this, passHtmlFormatterType.Css
to theUseColorCode
extension method to define the same behavior. - Various classes have been made
internal
to reduce the footprint of this package.
Dependency updates:
Package | Type | Update | Change |
---|---|---|---|
Markdig (source) | nuget | minor | 0.31.0 -> 0.32.0 |
Publish using .NET 7 SDK.
Dependency updates:
Package | Type | Update | Change |
---|---|---|---|
ColorCode.Core | nuget | patch | 2.0.14 -> 2.0.15 |
ColorCode.HTML | nuget | patch | 2.0.14 -> 2.0.15 |
- Handle for empty code blocks (#89)
- Markdig
v0.30.4
=>v0.31.0
- ColorCode.Core
v2.0.13
=>v2.0.14
- ColorCode.HTML
v2.0.13
=>v2.0.14
- Markdig
v0.27.0
=>v0.28.0
Initial release!
See the README for more information.